Skip to content

Commit

Permalink
Update src/Actions/ResolveForPropertyValueAction.php
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Witkowski <dev.gummibeer@gmail.com>
  • Loading branch information
stevebauman and Gummibeer authored Nov 11, 2022
1 parent 8a8584c commit 5642f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/ResolveForPropertyValueAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 5642f39

Please sign in to comment.