Skip to content

Commit 8a8584c

Browse files
committed
Cast enum namespace to string to ensure proper type is given to enum_exists()
1 parent 7b1aed8 commit 8a8584c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Actions/ResolveForPropertyValueAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ protected function isValueAnEnum($value): bool
3434

3535
$enumNamespace = is_object($value) ? get_class($value) : $value;
3636

37-
return ! is_array($value) && enum_exists($enumNamespace);
37+
return ! is_array($value) && enum_exists((string) $enumNamespace);
3838
}
3939
}

0 commit comments

Comments
 (0)