@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Enum; |
| 4 | 4 | |
| 5 | -use TypeError; |
|
| 6 | -use ReflectionClass; |
|
| 7 | 5 | use JsonSerializable; |
| 6 | +use ReflectionClass; |
|
| 8 | 7 | use ReflectionMethod; |
| 8 | +use TypeError; |
|
| 9 | 9 | |
| 10 | 10 | abstract class Enum implements JsonSerializable |
| 11 | 11 | { |
@@ -187,6 +187,9 @@ |
||
| 187 | 187 | return $enumValues; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | + /** |
|
| 191 | + * @return string |
|
| 192 | + */ |
|
| 190 | 193 | protected function resolveValueFromStaticCall(): ?string |
| 191 | 194 | { |
| 192 | 195 | if (strpos(get_class($this), 'class@anonymous') === 0) { |