timeweb/phpstan-enum

Enum class reflection extension for PHPStan

Installs: 667 088

Dependents: 10

Suggesters: 0

Security: 0

Stars: 37

Watchers: 6

Forks: 8

Open Issues: 1

Type:phpstan-extension

v3.0.0 2021-11-18 20:54 UTC

README

Packagist Version GitHub Workflow Status

This extension defines dynamic methods for MyCLabs\Enum\Enum subclasses.

Usage

To use this extension, require it with Composer

composer require --dev timeweb/phpstan-enum

And include extension.neon in your project's PHPStan config

includes:
  - vendor/timeweb/phpstan-enum/extension.neon

Install for Local Development

With docker

git clone git@github.com:timeweb/phpstan-enum.git
cd phpstan-enum
make docker-build
make install
make phpunit

Without docker (localy installed actual version of php, composer, etc)

git clone git@github.com:timeweb/phpstan-enum.git
cd phpstan-enum
make install
make phpunit