phpstan / phpstan-nette

Nette Framework class reflection extension for PHPStan & framework-specific rules
MIT License
100 stars 35 forks source link

FatalError after composer update (last version of Nette\PhpGenerator) #44

Closed xsuchy09 closed 4 years ago

xsuchy09 commented 4 years ago

After update Nette to last version with PHP 7.4 support. It is not compatible with last version of https://github.com/nette/php-generator. It is because of this change: https://github.com/nette/php-generator/commit/6e1cc8dfe3b824abe2439e8eed06183072d4404c

Now createObject is part of Nette\PhpGenerator\Dumper.

PHP Fatal error: Uncaught Nette\MemberAccessException: Call to undefined static method Nette\PhpGenerator\Helpers::createObject().

ondrejmirtes commented 4 years ago

Delete the compiled container on disk: /tmp/phpstan/cache/nette.configurator/Container_e4ad11a86e.php and run PHPStan again.

xsuchy09 commented 4 years ago

Helped. Thanks.

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.