rey26/phpstan-rules

Reusable custom PHPStan rules for Rey26 projects.

Maintainers

Package info

github.com/rey26/phpstan-rules

pkg:composer/rey26/phpstan-rules

Transparency log

Statistics

Installs: 245

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2026-07-12 14:51 UTC

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