Skip to content

timeweb/phpstan-enum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f2b10a5 · Nov 18, 2021

History

38 Commits
May 11, 2021
May 9, 2021
Nov 18, 2021
May 11, 2021
May 11, 2021
May 11, 2021
Mar 18, 2017
May 11, 2021
May 11, 2021
Nov 18, 2021
May 11, 2021
Mar 18, 2017

Repository files navigation

Enum class reflection extension for PHPStan

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