Skip to content

PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.

License

Notifications You must be signed in to change notification settings

phpstan/phpstan-deprecation-rules

Repository files navigation

Rules for detecting usage of deprecated classes, methods, properties, constants and traits.

Build Status Latest Stable Version License

Installation

To use this extension, require it in Composer:

composer require --dev phpstan/phpstan-deprecation-rules

If you also install phpstan/extension-installer then you're all set!

Manual installation

If you don't want to use phpstan/extension-installer, include rules.neon in your project's PHPStan config:

includes:
    - vendor/phpstan/phpstan-deprecation-rules/rules.neon