[PropertyInfo] Fix compat with recent phpdocumentor/type-resolver

This commit is contained in:
Nicolas Grekas 2018-02-04 15:17:18 +01:00
parent 81dafca6db
commit ae96700c20

View File

@ -204,7 +204,7 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property
return;
}
return $this->docBlockFactory->create($reflectionProperty, $this->contextFactory->createFromReflector($reflectionProperty));
return $this->docBlockFactory->create($reflectionProperty, $this->contextFactory->createFromReflector($reflectionProperty->getDeclaringClass()));
}
/**