phpstan/phpstan-deprecation-rules
PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.
2.0.5
96M downloads/mo
#308 most downloaded on Packagist
phpstan/phpstan-deprecation-rules
What this package is like to depend on
Last release 1 months ago
22 Jul 2026
Release timing varies
gaps range from 2 weeks to 9 months
Some releases are documented
notes for 10 of 27 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
27 releases · first in 2018
2 releases in the last 12 months
see the full history below
Release timeline
27 releases · Jun 2018 to Jul 2026Releases
latest 27-
2.0.522 Jul 2026Release notes
Open source →- 67bedd6 - Update github-actions (#197)
- 6be8bd3 - Update actions/cache action to v6 (#198)
- 0b310ec - Update github-actions to v3.0.1 (#195)
- 782d848 - Update github-actions to v7 (#196)
- 85fff9d - Update github-actions to f3e473d (#194)
- 54db580 - Update github-actions (#193)
- 99aff1a - Replace deprecated actions/create-release with softprops/action-gh-release
- 971f8e1 - Bump GitHub Actions across major versions
- 89fef35 - Bump GitHub Actions within their current majors
- 0652358 - Update github-actions
- 02119cc - Update github-actions
- 389c78c - latest infection does not support PHP 8.2 (#189)
- 899202d - Update release-toot.yml (#188)
- 016d677 - name-collision-detector (#187)
- 945df12 - Delete .github/workflows/claude-react-on-comment.yml
- a70b8b1 - Remove default branch determination from workflow
- 1faeb2e - Lint workflows
- 534891e - [StepSecurity] ci: Harden GitHub Actions
- 3acc664 - Remove PHPSTAN_BOT_TOKEN from checkout step
- 49efeb2 - React on issues opened and fall back to issue body
- 319c3f6 - Add PHP 8.5 to CI matrix for lint, tests, and static analysis
- 73feeba - Add missing export-ignore entries to .gitattributes
- c6d73e5 - Add CLAUDE.md with project documentation
- f9f68eb - Add Claude React on Comment workflow
-
2.0.409 Feb 2026Release notes
Open source →- 6b55710 - Constants deprecation depends on Scope->getPhpVersion() (#170)
- fc5fc52 - Add keywords for static analysis in composer.json
- 7188c0b - move analyse-paths into phpstan.neon
- 5f39876 - Fix mutation testing on dev branch (#166)
- 68e0865 - Setup mutation testing
- 0b87f52 - Update actions/checkout action to v5
- 2476691 - Update Eomm/why-don-t-you-tweet action to v2
-
2.0.314 May 2025 -
2.0.226 Apr 2025Release notes
Open source →- 9d8e7d4 - Implement RestrictedClassConstantUsageExtension
- 9e96248 - Implement RestrictedPropertyUsageExtension
- 3562b56 - Implement RestrictedFunctionUsageExtension
- ce7a039 - Simplification
- 223f1ab - Replace TypeHintDeprecated*Rule with RestrictedDeprecatedClassNameUsageExtension
- 13d3746 - Simplification
- 09f067c - Fixes
- e5d941d - Restore original CallToDeprecatedStaticMethodRuleTest
- 0deffb7 - Implement RestrictedClassNameUsageExtension
- 15f1d89 - RestrictedMethodUsageExtension is called for static methods too
- 0494a38 - Take advantage of RestrictedMethodUsageExtension
- 96f9357 - Update metcalfc/changelog-generator action to v4.6.2
- 775b713 - Readme: mention custom deprecation attribute
- adf5e23 - Update metcalfc/changelog-generator action to v4.5.0
- d3fb1e8 - Update LICENSE
-
2.0.128 Nov 2024 -
2.0.026 Oct 2024Release notes
Open source →- 81833b5 - Removed always true PHP_VERSION_ID condition
- f4a969d - Merge branch '1.2.x' into 2.0.x
- 0ccccb1 -
selectSingle()is being deprecated - 392bbe7 - Updates for PHPStan 2.0 changes
- 89572d5 - Merge branch '1.2.x' into 2.0.x
- 398e2e2 - Merge remote-tracking branch 'origin/1.2.x' into 2.0.x
- 4590cf6 - Update build-cs
- 681b2db - Stop testing PHP 7.2 and 7.3
- 0e1d78a - Open 2.0.x
-
1.2.111 Sep 2024 -
1.2.020 Apr 2024Release notes
Open source →- fa8cce7 - Update lock-closed-issues.yml
- 8342041 - Merge remote-tracking branch 'origin/1.1.x' into 1.2.x
- d457b73 - Update PHPStan version
- ff4f00f - Update FetchingDeprecatedConstRuleTest.php
- 437ac71 - Fix build
- e9ea332 - Update metcalfc/changelog-generator action to v4.3.1
- f71dbf6 - Update cbrgm/mastodon-github-action action to v2
- 10f0e35 - Merge branch '1.1.x' into 1.2.x
- 674d785 - Fix build
- e7fe22b - Update metcalfc/changelog-generator action to v4.2.0
- 83345f7 - Update dessant/lock-threads action to v5
- 788ea1b - remove phpstan/phpstan-php-parser
- 4175e8a - Update actions/checkout action to v4
- f1cacde - Fix a typo
- 1884f9f - Next-gen coding standard workflow
- 2313a63 - Modernize rules to use RuleErrorBuilder and report error identifiers
- ca9e4fd - Open 1.2.x-dev
-
1.1.405 Aug 2023Release notes
Open source →- 089d8a8 - DeprecatedScopeResolver - documentation in README
- ce6a85a - DeprecatedScopeResolver - description in PHPDoc
- 0f3fbc3 - DeprecatedScopeResolver is covered with backward compatibility promise
- 6d416c7 - Add deprecated scope resolving
- 94d68d3 - Update dependency slevomat/coding-standard to v8.12.0
- 4b7516f - Update dependency slevomat/coding-standard to v8.11.1
- 9d366de - Update dependency slevomat/coding-standard to v8.10.0
- a0b8839 - Update build-cs
- 67b670f - Update PHPCS
- e148790 - Update metcalfc/changelog-generator action to v4.1.0
- cbbbaa9 - add test for deprecation inheritance in trait
-
1.1.317 Mar 2023Release notes
Open source → -
1.1.217 Jan 2023Nothing published for this version
-
1.1.113 Dec 2022Nothing published for this version
-
1.1.007 Dec 2022Nothing published for this version
-
1.0.023 Sep 2021Nothing published for this version
-
0.12.613 Dec 2020Nothing published for this version
-
0.12.521 Jul 2020Nothing published for this version
-
0.12.430 May 2020Nothing published for this version
-
0.12.320 May 2020Nothing published for this version
-
0.12.212 Jan 2020Nothing published for this version
-
0.12.101 Jan 2020Nothing published for this version
-
0.12.025 Nov 2019Nothing published for this version
-
0.11.228 May 2019Nothing published for this version
-
0.11.119 May 2019Nothing published for this version
-
0.10.230 Jun 2018Nothing published for this version
-
0.10.126 Jun 2018Nothing published for this version
-
0.1105 Dec 2018Nothing published for this version
-
0.1024 Jun 2018Nothing published for this version