This fixes static analysis in editors such as PhpStorm. This enables calls such as MyEnum::memberByValue($foo) to return MyEnum instead of ValueMultitonInterface during static analysis thus avoiding warnings that ValueMultitonInterface does not match the expected type MyEnum when MyEnum is used as a type hint for method calls.
This fixes static analysis in editors such as PhpStorm. This enables calls such as
MyEnum::memberByValue($foo)
to returnMyEnum
instead ofValueMultitonInterface
during static analysis thus avoiding warnings thatValueMultitonInterface
does not match the expected typeMyEnum
whenMyEnum
is used as a type hint for method calls.