Content
Updated by Sagar Gurung over 1 year ago
We are facing an error while running psalm i.e. a static code analysis tool for php done in PR [https://github.com/nextcloud/integration\_openproject/pull/504](https://github.com/nextcloud/integration_openproject/pull/504) [https://github.com/nextcloud/integration\_openproject/pull/504](https://github.com/nextcloud/integration_openproject/pull/504)
This work package is a reminder to enable it after the error is fixed. The error that might have caused the psalm to exit might be be
```text
PHP Fatal error: Declaration of Doctrine\Common\Cache\Psr6\CacheItem::get() must be compatible with Psr\Cache\CacheItemInterface::get(): mixed in nextcloud/master/3rdparty/doctrine/cache/lib/Doctrine/Common/Cache/Psr6/CacheItem.php on line 51
```
The psalm for some reason is looking into the 3rdparty app and I couldn't find the way to suppress it, I'll make a PR to 3rdparty to fix the errors if possible and maybe then we can enable the psalm again
This work package is a reminder to enable it after the error is fixed. The error that might have caused the psalm to exit might be
```text
PHP Fatal error: Declaration of Doctrine\Common\Cache\Psr6\CacheItem::get() must be compatible with Psr\Cache\CacheItemInterface::get(): mixed in nextcloud/master/3rdparty/doctrine/cache/lib/Doctrine/Common/Cache/Psr6/CacheItem.php on line 51
```
The psalm for some reason is looking into the 3rdparty app and I couldn't find the way to suppress it, I'll make a PR to 3rdparty to fix the errors if possible and maybe then we can enable the psalm again