phpstan/phpstan-shim
Deprecated shim for PHPStan. Since PHPStan 0.12, the main phpstan/phpstan package ships as a PHAR, making phpstan/phpstan-shim unnecessary. Upgrade by switching composer dependency to phpstan/phpstan ^0.12 and reinstalling.
Thank you for using PHPStan!
Read more about the latest release here!
With the release of PHPStan 0.12, the primary Composer package used by most users,
phpstan/phpstan, has switched to a PHAR file. It works the same way as phpstan-shim.
The need for a separate PHAR distribution has ceased.
Package phpstan/phpstan-shim is no longer needed.
You should upgrade to phpstan/phpstan 0.12 with the following steps:
"phpstan/phpstan-shim"
to "phpstan/phpstan": "^0.12".composer.lock.vendor/phpstan directory.vendor/bin/phpstan and vendor/bin/phpstan.phar.If you have any problem upgrading, don't hesitate to describe your issue at: https://github.com/phpstan/phpstan/issues/new/choose
PHPStan release notes are over at phpstan/phpstan.
%rootDir% to be consistent with phpstan/phpstanFixed two PHAR-related autoloading issues that originated in 0.10.4:
phpstan executable from phpstan-shim instead of phpstan.phar, the message "Fatal error: Cannot redeclare composerRequired3df62903055312660ab99fff5d55b82()" appeared. That's because PHP construct require_once didn't recognize the same file was already loaded. Fixed by checking defined constant about PHPStan runtime: https://github.com/phpstan/phpstan/commit/4dfaaac59d6d1af13fddf6d3e961d69744075be6PHPStan release notes are over at phpstan/phpstan.
Additionally, libraries from inside the PHAR (like nikic/php-parser) are now propagated to Composer autoloader. So if you install phpstan/phpstan-shim and some other package that relies on nikic/php-parser, this will no longer be a problem. (#16, #19)
How can I help you explore Laravel packages today?