marc-mabe / php-enum-phpstan
Enum class reflection extension for PHPStan
Installs: 464 227
Dependents: 4
Suggesters: 0
Security: 0
Stars: 13
Watchers: 5
Forks: 4
Open Issues: 1
Type:phpstan-extension
Requires
- php: ^7.1 | ^8.0
- marc-mabe/php-enum: ^1.1 || ^2.0 || ^3.0 || ^4.0
- phpstan/phpstan: ^1.0
Requires (Dev)
- phpunit/phpunit: ^7.5 | ^8.5 | 9.4
README
PHP-Enum enumerations with native PHP.
PHPStan is a static code analysis tool.
PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code. It moves PHP closer to compiled languages in the sense that the correctness of each line of the code can be checked before you run the actual line.
This PHPStan extension makes enumerator accessor methods and enum possible values known to PHPStan.
Install
Install via Composer
composer require --dev marc-mabe/php-enum-phpstan
and include extension.neon in your project's PHPStan config
includes:
- vendor/marc-mabe/php-enum-phpstan/extension.neon