This extension defines dynamic methods for MyCLabs\Enum\Enum
subclasses.
To use this extension, require it with Composer
composer require --dev timeweb/phpstan-enum
If you also install phpstan/extension-installer then you're all set!
If you don't want to use phpstan/extension-installer
, include extension.neon in your project's PHPStan config:
includes:
- vendor/timeweb/phpstan-enum/extension.neon
git clone git@github.com:timeweb/phpstan-enum.git
cd phpstan-enum
make docker-build
make install
make phpunit
git clone git@github.com:timeweb/phpstan-enum.git
cd phpstan-enum
make install
make phpunit