https://github.com/marc-mabe/php-enum-phpstan
PHPStan extension for php-enum
https://github.com/marc-mabe/php-enum-phpstan
Last synced: 7 months ago
JSON representation
PHPStan extension for php-enum
- Host: GitHub
- URL: https://github.com/marc-mabe/php-enum-phpstan
- Owner: marc-mabe
- License: bsd-3-clause
- Created: 2020-01-07T13:18:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-10T08:22:23.000Z (about 1 year ago)
- Last Synced: 2025-04-13T03:43:07.234Z (8 months ago)
- Language: PHP
- Size: 57.6 KB
- Stars: 12
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# PHPStan extension for php-enum
[](https://github.com/marc-mabe/php-enum-phpstan/blob/master/LICENSE.txt)
[](https://packagist.org/packages/marc-mabe/php-enum-phpstan)
[PHP-Enum](https://github.com/marc-mabe/php-enum) enumerations with native PHP.
[PHPStan](https://phpstan.org/) 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](https://getcomposer.org)
```
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
```