8000 fixes · symfony/symfony@f045e22 · GitHub
[go: up one dir, main page]

Skip to content

Commit f045e22

Browse files
committed
fixes
1 parent bfac6f2 commit f045e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Contracts/Service/ServiceSubscriberTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static function getSubscribedServices(): array
5757
throw new \LogicException(sprintf('Cannot use "%s" on methods without a return type in "%s::%s()".', SubscribedService::class, $method->name, self::class));
5858
}
5959

60-
$serviceId = $returnType instanceof \ReflectionNamedType ? $returnType->getName() : $returnType;
60+
$serviceId = $returnType instanceof \ReflectionNamedType ? $returnType->getName() : (string) $returnType;
6161

6262
if ($returnType->allowsNull()) {
6363
$serviceId = '?'.$serviceId;

0 commit comments

Comments
 (0)
0