rey26 / phpstan-rules
Reusable custom PHPStan rules for Rey26 projects.
v1.0.2
2026-07-12 14:51 UTC
Requires
- php: >=8.4
- phpstan/phpstan: ^2.0
Requires (Dev)
- phpunit/phpunit: ^13
This package is auto-updated.
Last update: 2026-08-12 15:14:57 UTC
README
Reusable custom PHPStan rules for Rey26 projects.
Rules
| Rule | Node | Description |
|---|---|---|
EasyAdminActionExistsRule |
MethodCall |
Ensures action names passed to linkToCrudAction() refer to an existing public method on the current AbstractCrudController. |
TypeHintArrowFunctionsRule |
ArrowFunction |
Requires every arrow function parameter and its return value to declare an explicit type. |
Installation
composer require --dev rey26/phpstan-rules
Auto-registration
If the consuming project uses phpstan/extension-installer,
the rules are registered automatically via the extra.phpstan.includes entry in composer.json:
composer require --dev phpstan/extension-installer
Otherwise, include the config manually in your phpstan.neon:
includes: - vendor/rey26/phpstan-rules/phpstan.neon
Development
composer install vendor/bin/phpunit