What is planning for phpstan wrt end of active support on php8.3? #13755
-
|
Please note that there are blocking issues when using phpstan (and specifically phpstan-doctrine) that prevents using php cli on php8.4. What is the general opinion about these kind of blocking issues? e.g. phpstan/phpstan-doctrine#646 End of active php 8.3 support per 31 Dec 2025: https://www.php.net/supported-versions.php |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
PHPStan fully supports running on PHP 7.4 to 8.5. You can even set the The table at https://www.php.net/supported-versions.php has no bearing on what PHP versions PHPStan supports. About the linked issue phpstan/phpstan-doctrine#646 - nobody provided me with a working reproduction of the issue. The errors from stubs simply should not appear when analysing code outside of phpstan-doctrine repository. I tried to write some a bit more defensive code about filtering those errors that shipped in the latest PHPStan 2.1.31. Are you using that version? If you're using the latest PHPStan version and this issue still appears, please create a minimal repository that shows this problem. |
Beta Was this translation helpful? Give feedback.
-
|
2.1.31 is confirmed, with version 2.0.10 for phpstan-doctrine. I've created a repo with the same composer packages as we currently use. It's intentionally containing just one empty php file to show what happens. In the last commit I've removed most of the packages, and the result was still the same. All necessary steps are in the Readme.md Feel free to contact me if you need additional information. |
Beta Was this translation helpful? Give feedback.
Fixed: phpstan/phpstan-src#4522
You can try it now by doing
composer require --dev phpstan/phpstan:2.1.x-dev.