You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get this working with Silverstripe 4 and Visual Studio Code. I went through and followed the guides, made sure to install the shim of phpstan too but I'm still getting this error:
PHP Fatal error: Declaration of SilbinaryWolf\SilverstripePHPStan\Reflection\MethodClassReflectionExtension::setBroker(PHPStan\Broker\Broker $broker) must be compatible with PHPStan\Reflection\BrokerAwareExtension::setBroker(PHPStan\Broker\Broker $broker): void in /Users/jamsea/git/tinyhouse/vendor/symbiote/silverstripe-phpstan/src/Reflection/MethodClassReflectionExtension.php on line 53
Fatal error: Declaration of SilbinaryWolf\SilverstripePHPStan\Reflection\MethodClassReflectionExtension::setBroker(PHPStan\Broker\Broker $broker) must be compatible with PHPStan\Reflection\BrokerAwareExtension::setBroker(PHPStan\Broker\Broker $broker): void in /Users/jamsea/git/tinyhouse/vendor/symbiote/silverstripe-phpstan/src/Reflection/MethodClassReflectionExtension.php on line 53
# Spawn error
Unexpected token F in JSON at position 1
I'm trying to get this working with Silverstripe 4 and Visual Studio Code. I went through and followed the guides, made sure to install the shim of phpstan too but I'm still getting this error:
My phpstan.neon file looks like this:
The
require-dev
block in composer.json looks like this:Any ideas?
The text was updated successfully, but these errors were encountered: