jdecool / enum-phpstan
This package is abandoned and no longer maintained.
No replacement package was suggested.
PHPStan extension for jdecool/enum
1.0.0
2020-12-09 20:02 UTC
Requires
- php: ^8.0
- jdecool/enum: ^1.0
- phpstan/phpstan: ^0.12
Requires (Dev)
- phpunit/phpunit: ^9.5
- vimeo/psalm: ^4.3
README
This extension defines dynamic methods for JDecool\Enum\Enum
subclasses.
Deprecated
⚠️ This project is no longer actively maintained.
Native enum arrived to PHP in version 8.1: https://www.php.net/enumerations If your project is running PHP 8.1+ or your library has it as a minimum requirement you should use it instead of this library.
Usage
To use this extension, require it with Composer.
composer require --dev jdecool/enum-phpstan
And include extension.neon
in your project's PHPStan config
includes: - vendor/jdecool/enum-phpstan/extension.neon