From 5642f393185af1530f8f2d7a72f1609dc20d34dc Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Fri, 11 Nov 2022 09:56:29 -0500 Subject: [PATCH] Update src/Actions/ResolveForPropertyValueAction.php Co-authored-by: Tom Witkowski --- src/Actions/ResolveForPropertyValueAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Actions/ResolveForPropertyValueAction.php b/src/Actions/ResolveForPropertyValueAction.php index c4c436f5..836e0a9b 100644 --- a/src/Actions/ResolveForPropertyValueAction.php +++ b/src/Actions/ResolveForPropertyValueAction.php @@ -34,6 +34,6 @@ protected function isValueAnEnum($value): bool $enumNamespace = is_object($value) ? get_class($value) : $value; - return ! is_array($value) && enum_exists((string) $enumNamespace); + return ! is_array($value) && is_string($enumNamespace) && enum_exists($enumNamespace); } }