Commit 1e9f69a6 authored by Jan Kuchař's avatar Jan Kuchař

fixed type hint

parent aeaccc0a
Pipeline #14404 failed with stages
in 59 seconds
......@@ -33,13 +33,12 @@ abstract class Enum
}
/**
* @return string[]|int[]
* @return array<string,string|int>
*/
protected static function getConstantToScalar(): array
{
try {
return (new \ReflectionClass(static::class))
->getConstants();
return (new \ReflectionClass(static::class))->getConstants();
} catch (\ReflectionException $e) {
throw new ReflectionFailedException($e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment