bitexpert/phpstan-magento
PHPStan Magento Extension
v0.43.0
2.7M downloads/mo
#2601 most downloaded on Packagist
bitExpert/phpstan-magento
What this package is like to depend on
Last release 1 months ago
28 Jun 2026
Release timing varies
gaps range from 2 weeks to 1.3 years
Nearly every release is documented
notes for 40 of 40 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
40 releases · first in 2020
1 release in the last 12 months
see the full history below
Release timeline
40 releases · Apr 2020 to Jun 2026Releases
latest 40-
v0.43.028 Jun 2026Release notes
Open source →Added
- #347 Make cache key unique per project (so per current working directory).
- #346 Add Stubs for Magento's loosey-string behavior
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #352 Fix CI pipeline by upgrading to more recent Magento versions
- #351 Fix build on PHPStan 2.2.3
- #348 Normalises the indentations to tabs and not a mix of spaces and tabs.
Thank you @hostep, @navarr, and @staabm for your contributions!
Release notes
Open source →Added
- #347 Make cache key unique per project (so per current working directory).
- #346 Add Stubs for Magento's loosey-string behavior
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
v0.42.017 May 2025Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #340 fix: error where scopeConfig proxy would get $scopeType = default
Thank you, @stijnbernards, for your contribution!
Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #340 fix: error where scopeConfig proxy would get $scopeType = default
-
v0.41.006 Mar 2025Release notes
Open source →0.41.0
Added
- #338 Feature/type for controller result factory
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Thank you @pmarki for your contribution!
Release notes
Open source →Added
- #338 Feature/type for controller result factory
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
v0.40.022 Feb 2025Release notes
Open source →Added
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
THANK YOU @hostep and @indykoning for your contributions!
-
v0.32.031 Aug 2024Release notes
Open source →Added
- #326 Update phpstan/phpstan requirement to ~1.12.0
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
- #326 Update phpstan/phpstan requirement to ~1.12.0
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
v0.31.009 Jul 2024Release notes
Open source →Added
- #318 Update phpstan/phpstan requirement to ~1.11.1
- #308 Update nikic/php-parser requirement to ^5.0.1
- #304 Extend Neon validation logic for CI
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #306 Fix typo
Thanks @sprankhub for your contribution!
Release notes
Open source →Added
- #318 Update phpstan/phpstan requirement to ~1.11.1
- #308 Update nikic/php-parser requirement to ^5.0.1
- #304 Extend Neon validation logic for CI
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #306 Fix typo
-
v0.30.107 Apr 2023Release notes
Open source →Release notes
Open source → -
v0.30.007 Apr 2023Release notes
Open source →Added
- #300 Add rule "Disallow setTemplate() in Block classes"
- #299 Add rule "resource models should be used directly"
- #298 Add Magento 2.4.6 to CI pipeline
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
- #300 Add rule "Disallow setTemplate() in Block classes"
- #299 Add rule "resource models should be used directly"
- #298 Add Magento 2.4.6 to CI pipeline
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
v0.29.028 Feb 2023Release notes
Open source →Added
- #292 Update phpstan/phpstan requirement to ~1.10.3
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
- #292 Update phpstan/phpstan requirement to ~1.10.3
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
v0.28.022 Jan 2023Release notes
Open source →Added
- #283 Adds PHP 8.2 / Magento 2.4.6 support
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #284 Ignore ext autoloader for local classes
Thanks, @hostep for your contribution!
Release notes
Open source →Added
- #283 Adds PHP 8.2 / Magento 2.4.6 support
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #284 Ignore ext autoloader for local classes
-
v0.27.012 Nov 2022Release notes
Open source →Added
- Nothing.
Deprecated
- #279 Update phpstan/phpstan requirement to ~1.9.2
Removed
- Nothing.
Fixed
- Nothing.
-
v0.26.012 Nov 2022Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #276 Check existing extension interface for types
-
v0.25.004 Oct 2022 -
v0.24.013 Aug 2022 -
v0.23.106 Aug 2022 -
v0.23.027 May 2022Release notes
Open source → -
v0.22.026 May 2022Release notes
Open source →Added
- #246 Do not yet require PHPStan 1.7
- #242 Add link to related blog post
- #239 Update madewithlove/license-checker requirement from to ^1.2
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
v0.21.027 Apr 2022Release notes
Open source → -
v0.20.022 Apr 2022Release notes
Open source →Added
- #238 Bump phpstan/phpstan to 1.5.7
- #232 Bump league/commonmark to 2.3.0
- #231 Support for 2.4.4
- #230 Bump phpunit/phpunit to 9.5.20
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
v0.19.025 Mar 2022Release notes
Open source →Added
- Nothing.
Deprecated
- #223 Deprecate PHPStan 1.4 and make extension compatible with PHPStan 1.5
Removed
- Nothing.
Fixed
- Nothing.
-
v0.18.025 Mar 2022Release notes
Open source →Added
- #221 Feature/packagist downloads
- #220 Add documenation for composer plugins
- #219 Bump phpunit/phpunit to 9.5.19
- #218 Bump phpstan/phpstan to 1.4.10
- #216 Bump nette/neon to 3.3.3
- #212 Bump captainhook/captainhook to 5.10.8
- #210 Bump league/commonmark to 2.2.3
- #201 Bump captainhook/plugin-composer to 5.3.3
- #202 Bump symfony/finder to 5.4.3
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
v0.17.015 Jan 2022Release notes
Open source →Added
- Nothing
Deprecated
- #192 Deprecate PHPStan 1.3 and make extension compatible with PHPStan 1.4
Removed
- Nothing.
Fixed
- Nothing.
-
v0.16.015 Jan 2022Release notes
Open source →Added
- #191 Add autoloader for extension classes
- #190 Check if classes referenced in neon config exist
- #188 Automatically register the autoloader file
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
v0.15.008 Jan 2022Release notes
Open source → -
v0.14.008 Jan 2022 -
v0.13.023 Dec 2021Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- #173 Upgrade to PHPStan 1.2, drop support for PHPStan 1.1
Fixed
- Nothing.
-
v0.12.023 Dec 2021Release notes
Open source →Added
- #171 Improve docs
- #170 Throw exception in autoloader
- #169 Bump captainhook/captainhook to 5.10.5
- #168 Bump squizlabs/php_codesniffer to 3.6.2
- #164 Bump nikic/php-parser to 4.13.2
- #163 Determine tmpDir path relative to config file when appropriate
- #162 Support for extension attributes
- #159 Bump phpstan/phpstan-strict-rules to 1.1.0
- #158 Bump phpstan/phpstan to 1.2.0
Deprecated
- Nothing.
Removed
- #171 Remove nette/neon dependency
Fixed
- Nothing.
-
v0.11.013 Nov 2021Release notes
Open source →Added
- #157 Allow PHP 8.0 as PHP runtime
Deprecated
- #156 Drop support for PHPStan 0.12.x
Removed
- Nothing.
Fixed
- Nothing.
-
v0.10.013 Nov 2021Release notes
Open source →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-composer to 5.3.2
- #149 Bump composer/composer to 2.1.9
- #148 Bump squizlabs/php_codesniffer to 3.6.1
- #146 Bump mikey179/vfsstream to 1.6.10
- #145 Bump phpunit/phpunit to 9.5.10
- #141 Bump phpstan/phpstan to 0.12.99
- #140 Bump captainhook/captainhook to 5.10.2
- #135 Bump phpstan/phpstan-strict-rules to 0.12.11
- #134 Bump phpstan/phpstan-phpunit to 0.12.22
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
v0.9.007 Aug 2021Release notes
Open source →Added
- #131 Bump phpstan/phpstan to 0.12.94
- #130 Bump phpunit/phpunit to 9.5.8
- #129 Bump nikic/php-parser to 4.12.0
- #126 Bump mikey179/vfsstream to 1.6.9
- #125 Bump phpstan/phpstan-phpunit to 0.12.21
- #123 Bump phpstan/phpstan-strict-rules to 0.12.10
- #119 Add more unit tests
- #118 Turn magento/framework into dev dependency
- #117 Switch to Composer 2 for CI workflow
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
v0.8.018 Jun 2021Release notes
Open source →Added
- #116 Add license checker to CI workflow
- #115 Upgrade Composer dependencies
- #114 Bump phpstan/phpstan-phpunit to 0.12.20
- #111 Bump phpstan/phpstan to 0.12.89
- #110 Bump phpunit/phpunit to 9.5.5
- #109 Bump captainhook/captainhook to 5.10.1
- #108 Bump captainhook/plugin-composer to 5.3.1
- #100 Bump nikic/php-parser to 4.10.5
- #98 Upgrade to GitHub-native Dependabot
- #96 Bump composer/composer to 2.0.13
- #90 Bump squizlabs/php_codesniffer to 3.6.0
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
v0.7.013 Mar 2021Release notes
Open source →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.12.18
- #77 Bump captainhook/captainhook from 5.4.4 to 5.4.5
- #76 Bump captainhook/plugin-composer from 5.2.3 to 5.2.4
- #74 Bump nette/neon from 3.2.1 to 3.2.2
- #67 Add phpstan/phpstan-strict-rules
- #64 PHPStan extensions run on max
- #63 Bump magento/framework from 103.0.1 to 103.0.2
- #59 Bump phpunit/phpunit from 9.5.1 to 9.5.2
Deprecated
- Nothing.
Removed
- #60 Replace Phing with Composer scripts
Fixed
- #70 Install matching lowest version of strict rules
-
v0.6.022 Jan 2021Release notes
Open source → -
v0.5.006 Jan 2021 -
v0.4.127 Oct 2020Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #41 Removes upper version constraint of phpstan
-
v0.4.016 Oct 2020Release notes
Open source →Added
- #40 Use same constraint as latest Magento release
- #39 Apply phpstan.rules.rule tag dynamically via DI
- #36 Add deprecation rules for AbstractModel classe
Deprecated
- #40 Deprecated Config Option autoload_files
Removed
- Nothing.
Fixed
- Nothing.
-
v0.3.029 May 2020Release notes
Open source → -
v0.2.017 May 2020Release notes
Open source → -
v0.1.112 May 2020Release notes
Open source →Added
- #32 Add autoloader for Magento\TestFramework classes
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
v0.1.018 Apr 2020Release notes
Open source →Added
- #29 Improve code generation for factories & proxies
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.