NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2660 most downloaded on Packagist
PHPStan Magento Extension
Latest stable
0.44.0
Last release 2 months ago
14 Sep 2026
Release timing varies
gaps range from 2 weeks to 1.3 years
Nearly every release is documented
notes for 41 of 41 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
41 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
The extension is now maintained by Mage-OS.
The extension is now maintained by Mage-OS.
src/ on the lowest supported PHP version in CI and analyse the src/Magento stubs against the PHP version range declared in composer.json.composer smoke-test) that runs a real analysis over a generated fixture project and fails when the generated-class autoloaders report an internal error.bitExpert\PHPStan\Magento\Autoload\Cache\FileCacheStorage, replaced by bitExpert\PHPStan\Magento\Autoload\Cache\GeneratedFileCache. The autoloaders now take that class in place of PHPStan\Cache\Cache, and the generated classes move from %tmpDir%/cache/PHPStan to %tmpDir%/cache/bitExpert/PHPStanMagento so that they no longer share a directory with PHPStan's own cache.Escaper stub. It is require()d by the MockAutoloader, so it made every analysis run on PHP 7 fail with an internal error.FileCacheStorage stored the generated source but returned a file path from load(), which a PHPStan\Cache\CacheStorage must not do. Once PHPStan served cache entries from its shared memory arena, Cache::load() returned the source code and the autoloaders required that in place of the file.Full Changelog: https://github.com/bitExpert/phpstan-magento/compare/v0.43.0...0.44.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Thank you @hostep, @navarr, and @staabm for your contributions!
Thank you @hostep, @navarr, and @staabm for your contributions!
Thank you, @stijnbernards, for your contribution!
Thank you, @stijnbernards, for your contribution!
Thank you @pmarki for your contribution!
Thank you @pmarki for your contribution!
THANK YOU @hostep and @indykoning for your contributions!
### Added - #326 Update phpstan/phpstan requirement to ~1.12.0 ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - Nothing.
Thanks @sprankhub for your contribution!
### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #302 Fix problem with parametersSchema
### Added - #300 Add rule "Disallow setTemplate() in Block classes" - #299 Add rule "resource models should be used directly" - #298 Add Magento 2.4.6
### Added - #292 Update phpstan/phpstan requirement to ~1.10.3 ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - Nothing.
Thanks, @hostep for your contribution!
### Added - Nothing. ### Deprecated - #279 Update phpstan/phpstan requirement to ~1.9.2 ### Removed - Nothing. ### Fixed - Nothing.
### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #276 Check existing extension interface for types
### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #275 Restructure the docs - #274 Don't use ?array type hint in ext a
### Added - #269 Add Magento 2.4.5 to CI pipeline - #267 Use Magento root for TestFrameworkAutoloader ### Deprecated - Nothing. ### Removed - Nothing.
### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #266 Allow arrays in extension attributes - #264 Fix factory generat
### Added - #243 Upgrade to PHPStan 1.7 ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - Nothing.
Due to some incompatibilities with PHPStan 1.7, this version will only install on the 1.6 version line. Sadly, we can't yet do anything to make the ex
Due to some incompatibilities with PHPStan 1.7, this version will only install on the 1.6 version line. Sadly, we can't yet do anything to make the extension compatible with PHPStan 1.7. as we have to wait for some adaptions in PHPStan core.
### Added - #241 PHPStan 1.6 compatibility ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - Nothing.
Thanks @BrentRobert for helping with Magento 2.4.4 support!
## 0.19.0 ### Added - Nothing. ### Deprecated - #223 Deprecate PHPStan 1.4 and make extension compatible with PHPStan 1.5 ### Removed - Nothing. ### F
Thanks @torhoehn for your contribution!
Thanks @torhoehn for your contribution!
### Added - Nothing ### Deprecated - #192 Deprecate PHPStan 1.3 and make extension compatible with PHPStan 1.4 ### Removed - Nothing. ### Fixed - Noth
### Added - #191 Add autoloader for extension classes - #190 Check if classes referenced in neon config exist - #188 Automatically register the autolo
## 0.15.0 ### Added - Nothing. ### Deprecated - Nothing. ### Removed - #187 Bump phpstan/phpstan to 1.3.3 ### Fixed - Nothing.
### Added - #186 Bump captainhook/captainhook to 5.10.6 - #181 Bump league/commonmark to 2.1.1 - #178 Bump phpunit/phpunit to 9.5.11 - #175 Lint neon
### Added - Nothing. ### Deprecated - Nothing. ### Removed - #173 Upgrade to PHPStan 1.2, drop support for PHPStan 1.1 ### Fixed - Nothing.
Thank you @mattwellss for your contributions!
Thank you @mattwellss for your contributions!
### Added - #157 Allow PHP 8.0 as PHP runtime ### Deprecated - #156 Drop support for PHPStan 0.12.x ### Removed - Nothing. ### Fixed - Nothing.
### Added - #155 Composer dependency upgrade - #154 Bump nette/neon to 3.3.1 - #153 Bump nikic/php-parser to 4.13.1 - #150 Bump captainhook/plugin-com
Thank you @jbrada for your contribution!
Thank you @jbrada for your contribution!
### Added - #116 Add license checker to CI workflow - #115 Upgrade Composer dependencies - #114 Bump phpstan/phpstan-phpunit to 0.12.20 - #111 Bump ph
### Added - #80 Update Composer dependencies - #79 Bump phpstan/phpstan from 0.12.80 to 0.12.81 - #78 Bump phpstan/phpstan-phpunit from 0.12.17 to 0.1
## 0.6.0 ### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #52 Fix params for DataObject get & set
Thanks @xi-ao & @oneserv-heuser for your support!
Thanks, @hostep & @sprankhub for getting this sorted out. Very much appreciated!
Thanks, @hostep & @sprankhub for getting this sorted out. Very much appreciated!
Thank you @sprankhub, @torhoehn, @hostep and Mr. PHPStan @ondrejmirtes himself! :)
Thank you @sprankhub, @torhoehn, @hostep and Mr. PHPStan @ondrejmirtes himself! :)
## 0.3.0 ### Added - #35 Make DataObject extension stricter ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - Nothing.
### Added - #33 Upgrade PHPStan dependency to 0.12.24 ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - Nothing.
Thanks to @sprankhub for your support!
Thanks to @sprankhub for your support!
This is the first "official" release of the bitexpert/phpstan-magento package. Thanks to @sprankhub for the push in this direction :)
This is the first "official" release of the bitexpert/phpstan-magento package. Thanks to @sprankhub for the push in this direction :)
One column per quarter.