Skip to content
This repository has been archived by the owner on Dec 9, 2019. It is now read-only.

0.10.5

Compare
Choose a tag to compare
@ondrejmirtes ondrejmirtes released this 20 Oct 17:46
· 613 commits to master since this release

Fixed two PHAR-related autoloading issues that originated in 0.10.4:

  • When running 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: 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