We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10d379a commit 5b80d07Copy full SHA for 5b80d07
Compiler/FactoryReturnTypePass.php
@@ -93,7 +93,7 @@ private function updateDefinition(ContainerBuilder $container, $id, Definition $
93
94
$returnType = $m->getReturnType();
95
if (null !== $returnType && !$returnType->isBuiltin()) {
96
- $returnType = $returnType instanceof \ReflectionNamedType ? $returnType->getName() : $returnType->__toString();
+ $returnType = $returnType instanceof \ReflectionNamedType ? $returnType->getName() : (string) $returnType;
97
if (null !== $class) {
98
$declaringClass = $m->getDeclaringClass()->getName();
99
if ('self' === strtolower($returnType)) {
0 commit comments