Skip to content

Commit

Permalink
Return the string as-is, as a previous line does
Browse files Browse the repository at this point in the history
  • Loading branch information
mfb committed May 18, 2024
1 parent 4dc0a9a commit 4617759
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 @@ -291,7 +291,7 @@ protected function serializeCallable($callable): string
// Prefer a string representation for simple strings that might just
// happen to be callable, such as "file".
if (\is_string($callable) && strpos($callable, '::') === false && strpos($callable, '_') === false) {
return $this->serializeString($callable);
return $callable;
}

try {
Expand Down

0 comments on commit 4617759

Please sign in to comment.