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 3b9fe6d commit 6303a70Copy full SHA for 6303a70
OptionsResolver.php
@@ -1076,7 +1076,7 @@ private function getParameterClassName(\ReflectionParameter $parameter)
1076
return ($class = $parameter->getClass()) ? $class->name : null;
1077
}
1078
1079
- if (!($type = $parameter->getType()) || $type->isBuiltin()) {
+ if (!($type = $parameter->getType()) instanceof \ReflectionNamedType || $type->isBuiltin()) {
1080
return null;
1081
1082
0 commit comments