Skip to content
Snippets Groups Projects
Commit 1e9f69a6 authored by Jan Kuchař's avatar Jan Kuchař
Browse files

fixed type hint

parent aeaccc0a
No related branches found
No related tags found
1 merge request!13Cleanup & strictness
Pipeline #14404 failed
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment