@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | $definition = static::resolveDefinition(); |
28 | 28 | |
29 | - if (! isset($definition[$value])) { |
|
29 | + if (!isset($definition[$value])) { |
|
30 | 30 | $enumClass = static::class; |
31 | 31 | |
32 | 32 | throw new BadMethodCallException("There's no value {$value} defined for enum {$enumClass}, consider adding it in the docblock definition."); |
@@ -93,6 +93,6 @@ discard block |
||
93 | 93 | $definition[$value] = $labels[$value] ?? $value; |
94 | 94 | } |
95 | 95 | |
96 | - return static::$definitionCache[$className] ??= $definition; |
|
96 | + return static::$definitionCache[$className] ?? = $definition; |
|
97 | 97 | } |
98 | 98 | } |