Skip to content

Commit aa964e1

Browse files
Merge branch '3.4' into 4.0
* 3.4: [PropertyInfo] Fix compat with recent phpdocumentor/type-resolver
2 parents 2f587c3 + ae96700 commit aa964e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private function getDocBlockFromProperty(string $class, string $property): ?DocB
188188
return null;
189189
}
190190

191-
return $this->docBlockFactory->create($reflectionProperty, $this->contextFactory->createFromReflector($reflectionProperty));
191+
return $this->docBlockFactory->create($reflectionProperty, $this->contextFactory->createFromReflector($reflectionProperty->getDeclaringClass()));
192192
}
193193

194194
private function getDocBlockFromMethod(string $class, string $ucFirstProperty, int $type): ?array

0 commit comments

Comments
 (0)