Bug finders

PHPStan Deprecation Rules

PHPStan rules that detect use of deprecated classes, functions, methods, properties, constants, and traits.

Installation and compatibility

Type
Ruleset
PHP
^7.4 || ^8.0
License
MIT
Pricing
Free and open source
Install
composer require --dev phpstan/phpstan-deprecation-rules

Check the project documentation for configuration and version-specific requirements.

Strengths and limitations

ProDetects deprecated APIs and supports project-defined deprecation markers.

ConIt only reports deprecations that metadata, stubs, or extensions declare.

Editorially reviewed

Repository activity

Activity: Active. Repository activity is a separate signal from suitability for your application.

Latest release
2.0.5
Last commit
Last release

Metadata checked: .

Explore related tools

Browse all bug finders. Tools in the same category can serve different workflows; compare their requirements and limitations.