Skip to main content

phpstan-magento 0.29.0 released!

· One min read
Stephan Hochdörfer
Head of IT Business Operations

We've just released a new version of our bitexpert/phpstan-magento extension for PHPStan.

The latest release of our PHPStan extension for Magento comes with support for PHP 8.2 as well as 2.4.6-beta1. This means when Magento 2.4.6 is released, you can continue using this extension. Big thanks to Pieter Hoste for testing and contributing the changes!

Additionally, a minor issue with extension classes has been fixed. If you had a class with postfix "Extension" in your code or a 3rd party library, the extension tried to compile an extension attribute class and use that instead of the actual class. This is related to a change in PHStan 1.7 where classes resolved by autoloaders take precedence over local classes. With the latest version, this behavior has been fixed and made consistent across all autoloaders: Local classes will take precedence over classes generated by the custom autoloaders.

Enjoy the latest release! If you run into problems, open an issue on GitHub.