This repository has been archived by the owner on Dec 9, 2019. It is now read-only.
Releases: phpstan/phpstan-shim
Releases · phpstan/phpstan-shim
0.11
0.10.8
0.10.7
0.10.6
0.10.5
Fixed two PHAR-related autoloading issues that originated in 0.10.4:
- When running
phpstan
executable fromphpstan-shim
instead ofphpstan.phar
, the message "Fatal error: Cannot redeclare composerRequired3df62903055312660ab99fff5d55b82()" appeared. That's because PHP constructrequire_once
didn't recognize the same file was already loaded. Fixed by checking defined constant about PHPStan runtime: phpstan/phpstan@4dfaaac - When running PHPStan's PHAR in a project where PHPStan is already installed locally, the message "PHP Fatal error: Uncaught TypeError: Argument 1 passed to _HumbugBox52624676281c\Symfony\Component\Console\Application::add() must be an instance of _HumbugBox52624676281c\Symfony\Component\Console\Command\Command, instance of PHPStan\Command\AnalyseCommand given" appeared. That's because the project autoloader had priority. Fixed by switching the order of autoloaders (they are prepended): phpstan/phpstan@c6a8cd1
0.10.4
0.10.3
0.10.2
PHPStan 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)