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 2c4e215 commit 6423d8aCopy full SHA for 6423d8a
src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php
@@ -194,11 +194,11 @@ public function getTypesFromConstructor(string $class, string $property): ?array
194
if (!$reflectionType = $reflectionParameter->getType()) {
195
return null;
196
}
197
- if (!$type = $this->extractFromReflectionType($reflectionType, $reflectionConstructor)) {
+ if (!$types = $this->extractFromReflectionType($reflectionType, $reflectionConstructor->getDeclaringClass())) {
198
199
200
201
- return [$type];
+ return $types;
202
203
204
private function getReflectionParameterFromConstructor(string $property, \ReflectionMethod $reflectionConstructor): ?\ReflectionParameter
0 commit comments