Skip to content

rey26/phpstan-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rey26/phpstan-rules

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

About

PHPStan rules to ensure stricter types

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages