phpstan: Cannot declare class Composer\InstalledVersions
Bug report
After Upgrading phpstan/phpstan (1.8.2 => 1.8.7)
When I execute phpstan i get the error
PHP Fatal error: Cannot declare class Composer\InstalledVersions, because the name is already in use in /app/vendor/composer/InstalledVersions.php on line 25
Fatal error: Cannot declare class Composer\InstalledVersions, because the name is already in use in /app/vendor/composer/InstalledVersions.php on line 25
1.8.2 and older versions works fine The prob occurs in 1.8.3 - 1.8.7
Symfony/ApiPlatform Project.
Code snippet that reproduces the problem
phpstan
Expected output
normal stan output
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 17 (7 by maintainers)
Links to this issue
- Update dependency phpstan/phpstan to v1.8.8 (!261) · Merge requests · nano8 / core / display · GitLab
- Update dependency phpstan/phpstan to v1.8.8 (!202) · Merge requests · nano8 / core / security · GitLab
- Update dependency phpstan/phpstan to v1.8.8 (!225) · Merge requests · nano8 / core / request · GitLab
- Update dependency phpstan/phpstan to v1.8.8 (!210) · Merge requests · nano8 / core / endpoints · GitLab
- Update dependency phpstan/phpstan to v1.8.8 (!222) · Merge requests · nano8 / core / validate · GitLab
Alright, PHPStan will no longer load its own Composer\InstalledVersions: https://github.com/phpstan/phpstan-src/commit/acbb55baeeb2f02b0ea2e61b4321e4f5dd5f65b2
Please test it once I release PHPStan 1.8.8.
ok changed from
xdebug.mode=debugtoxdebug.mode=developWrong mode probably then, you need
xdebug.mode=develop.