PackageTrack
Sign in Get early access

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 2026
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 27
  1. 2.0.5 22 Jul 2026
    Release notes
    • 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
    Open source →
  2. 2.0.4 09 Feb 2026
    Release notes
    • 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
    Open source →
  3. 2.0.3 14 May 2025
    Release notes
    • 468e02c - Remove UsageOfDeprecatedCastRule in favour of it already being implemented in PHPStan via RestrictedMethodUsageExtension
    • ea25caa - Fix UsageOfDeprecatedCastRule - it reported all casts, not just (string)
    Open source →
  4. 2.0.2 26 Apr 2025
    Release notes
    • 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
    Open source →
  5. 2.0.1 28 Nov 2024
    Release notes
    • 1cc1259 - Bleeding edge - CallWithDeprecatedIniOptionRule
    Open source →
  6. 2.0.0 26 Oct 2024
    Release notes
    • 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
    Open source →
  7. 1.2.1 11 Sep 2024
    Release notes
    Open source →
  8. 1.2.0 20 Apr 2024
    Release notes
    • 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
    Open source →
  9. 1.1.4 05 Aug 2023
    Release notes
    • 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
    Open source →
  10. 1.1.3 17 Mar 2023
    Release notes
    • a22b36b - report deprecated properties accessed by self
    • e3761ea - Update github-actions to v4
    Open source →
  11. 1.1.2 17 Jan 2023

    Nothing published for this version

  12. 1.1.1 13 Dec 2022

    Nothing published for this version

  13. 1.1.0 07 Dec 2022

    Nothing published for this version

  14. 1.0.0 23 Sep 2021

    Nothing published for this version

  15. 0.12.6 13 Dec 2020

    Nothing published for this version

  16. 0.12.5 21 Jul 2020

    Nothing published for this version

  17. 0.12.4 30 May 2020

    Nothing published for this version

  18. 0.12.3 20 May 2020

    Nothing published for this version

  19. 0.12.2 12 Jan 2020

    Nothing published for this version

  20. 0.12.1 01 Jan 2020

    Nothing published for this version

  21. 0.12.0 25 Nov 2019

    Nothing published for this version

  22. 0.11.2 28 May 2019

    Nothing published for this version

  23. 0.11.1 19 May 2019

    Nothing published for this version

  24. 0.10.2 30 Jun 2018

    Nothing published for this version

  25. 0.10.1 26 Jun 2018

    Nothing published for this version

  26. 0.11 05 Dec 2018

    Nothing published for this version

  27. 0.10 24 Jun 2018

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive