Improve ReflectionEnum->getCases()
performance
#1410
Annotations
6 errors
psalm:
src/Reflection/Adapter/ReflectionEnum.php#L44
src/Reflection/Adapter/ReflectionEnum.php:44:36: InvalidArgument: Argument 1 of Roave\BetterReflection\Util\Memoize::__construct expects null|pure-Closure():mixed, but impure-Closure():list<Roave\BetterReflection\Reflection\Adapter\ReflectionEnumBackedCase|Roave\BetterReflection\Reflection\Adapter\ReflectionEnumUnitCase> provided (see https://psalm.dev/004)
|
psalm:
src/Reflection/Adapter/ReflectionEnum.php#L553
src/Reflection/Adapter/ReflectionEnum.php:553:30: ImpureMethodCall: Cannot call a possibly-mutating method Roave\BetterReflection\Util\Memoize::get from a mutation-free context (see https://psalm.dev/203)
|
psalm:
src/Util/Memoize.php#L19
src/Util/Memoize.php:19:17: MixedInferredReturnType: Could not verify return type 'T' for Roave\BetterReflection\Util\Memoize::get (see https://psalm.dev/047)
|
psalm:
src/Util/Memoize.php#L23
src/Util/Memoize.php:23:13: InaccessibleProperty: Roave\BetterReflection\Util\Memoize::$cached is marked readonly (see https://psalm.dev/054)
|
psalm:
src/Util/Memoize.php#L27
src/Util/Memoize.php:27:16: MixedReturnStatement: Possibly-mixed return value (see https://psalm.dev/138)
|
psalm
Process completed with exit code 2.
|
Loading