From 461775946f0fa235ab78991577cc9ebf1f96f764 Mon Sep 17 00:00:00 2001 From: mark burdett Date: Fri, 17 May 2024 23:04:29 -0700 Subject: [PATCH] Return the string as-is, as a previous line does --- src/Serializer/AbstractSerializer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serializer/AbstractSerializer.php b/src/Serializer/AbstractSerializer.php index b5b33b49f..a949b5c07 100644 --- a/src/Serializer/AbstractSerializer.php +++ b/src/Serializer/AbstractSerializer.php @@ -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 {