Reusable custom PHPStan rules for Rey26 projects.
| 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. |
composer require --dev rey26/phpstan-rulesIf 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-installerOtherwise, include the config manually in your phpstan.neon:
includes:
- vendor/rey26/phpstan-rules/phpstan.neoncomposer install
vendor/bin/phpunit