We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a8584c commit 5642f39Copy full SHA for 5642f39
src/Actions/ResolveForPropertyValueAction.php
@@ -34,6 +34,6 @@ protected function isValueAnEnum($value): bool
34
35
$enumNamespace = is_object($value) ? get_class($value) : $value;
36
37
- return ! is_array($value) && enum_exists((string) $enumNamespace);
+ return ! is_array($value) && is_string($enumNamespace) && enum_exists($enumNamespace);
38
}
39
0 commit comments