From 6423d8a827728b8508e1d3172b42b17fc7064025 Mon Sep 17 00:00:00 2001 From: Maxime Steinhausser Date: Fri, 28 Aug 2020 18:07:48 +0200 Subject: [PATCH] [PropertyInfo] Fix ReflectionExtractor::getTypesFromConstructor --- .../Component/PropertyInfo/Extractor/ReflectionExtractor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php b/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php index d9fd45b439262..c26342a038480 100644 --- a/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php +++ b/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php @@ -194,11 +194,11 @@ public function getTypesFromConstructor(string $class, string $property): ?array if (!$reflectionType = $reflectionParameter->getType()) { return null; } - if (!$type = $this->extractFromReflectionType($reflectionType, $reflectionConstructor)) { + if (!$types = $this->extractFromReflectionType($reflectionType, $reflectionConstructor->getDeclaringClass())) { return null; } - return [$type]; + return $types; } private function getReflectionParameterFromConstructor(string $property, \ReflectionMethod $reflectionConstructor): ?\ReflectionParameter pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy