odan / phpstan-rules
PHPStan rules
Installs: 1 523
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Type:phpstan-extension
Requires
- php: ~8.0 || ~8.1 || ~8.2
- phpstan/phpstan: 1.*
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- nikic/php-parser: ^4.13.0
- php-parallel-lint/php-parallel-lint: ^1.2
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3
This package is auto-updated.
Last update: 2024-12-06 16:57:20 UTC
README
A collection of PHPStan rules.
Requirements
- PHP 8
Installation
composer require odan/phpstan-rules --dev
To use the PHPStan rules, you need to include the classes
in your PHPStan configuration file phpstan.neon
.
Just pick the rules you want:
rules: - Odan\PHPStan\Rules\AssignmentInConditionRule - Odan\PHPStan\Rules\YodaConditionRule
If you want to include all rules, you have to include rules.neon
in your project's PHPStan config:
includes: - vendor/odan/phpstan-rules/rules.neon
Rules
- AssignmentInConditionRule
- YodaConditionRule
License
The MIT License (MIT). Please see License File for more information.