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 19612b2 commit 2b38ce2Copy full SHA for 2b38ce2
Compiler/AutowirePass.php
@@ -528,7 +528,7 @@ private static function getResourceMetadataForMethod(\ReflectionMethod $method)
528
if (method_exists($parameter, 'getType')) {
529
$type = $parameter->getType();
530
if ($type && !$type->isBuiltin()) {
531
- $class = new \ReflectionClass(method_exists($type, 'getName') ? $type->getName() : (string) $type);
+ $class = new \ReflectionClass($type instanceof \ReflectionNamedType ? $type->getName() : (string) $type);
532
} else {
533
$class = null;
534
}
0 commit comments