Add the following lines your .phpstan.neon
:
For version < 9:
services:
-
class: Tests\Phpstan\BrokerFactory
broker:
class: PHPStan\Broker\Broker
factory: @Tests\Phpstan\BrokerFactory::create
else:
services:
brokerFactory:
class: Tests\Util\BrokerFactory