Releases: marc-mabe/php-enum-phpstan
Releases · marc-mabe/php-enum-phpstan
Support for PHPStan 2.0
Fixed crash on static calls on variables
- #13 Fixed crash on static calls on variables like
$enum::getValues()
thanks to @pascalheidmann
Support for PHPStan 1.0
#9, #11, #12 Added support for PHPStan 1.0 and dropped support for earlier releases thanks @ondrejmirtes
Added support for PHP-8
fixed return type detection of [self|static]::getValues()
Support return type detection for Enum::getValues()
Detect possible return types of static call Enum::getValues()
v1.1.0 - Dynamic return type detection of Enum->getValue() & Enum->getValues()
Added dynamic return type detection for Enum->getValue()
& Enum->getValues()
.
- detect return type of
getValue()/getValues()
of an enumeration by defined enumerators- If possible it also detects constant return values
- support union of multiple enumerations
- like the values of a union of
IntEnum|StrEnum
will be a union ofint|string
- like the values of a union of
v1.0.0 - First working release
Support detection of Enum::CONST() accessor methods including:
- return type declaration
- deprecation detection from @deprecated annotation of constant