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?