Skip to content

Commit

Permalink
Represent callable strings as strings (#1734)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfb committed May 18, 2024
1 parent d12ed37 commit 97712d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serializer/AbstractSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ protected function serializeValue($value)
*/
protected function serializeCallable($callable): string
{
if (\is_string($callable) && !\function_exists($callable)) {
if (\is_string($callable)) {
return $callable;
}

Expand Down

0 comments on commit 97712d0

Please sign in to comment.