Skip to content

Commit b3aefd0

Browse files
committed
Fix
1 parent d65138a commit b3aefd0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Reflection/Php/PhpClassReflectionExtension.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use PHPStan\Reflection\Native\NativeMethodReflection;
2929
use PHPStan\Reflection\Native\NativeParameterWithPhpDocsReflection;
3030
use PHPStan\Reflection\PropertiesClassReflectionExtension;
31+
use PHPStan\Reflection\PropertyReflection;
3132
use PHPStan\Reflection\ReflectionProvider;
3233
use PHPStan\Reflection\SignatureMap\FunctionSignature;
3334
use PHPStan\Reflection\SignatureMap\ParameterSignature;
@@ -152,7 +153,10 @@ public function hasProperty(ClassReflection $classReflection, string $propertyNa
152153
return $classReflection->getNativeReflection()->hasProperty($propertyName);
153154
}
154155

155-
public function getProperty(ClassReflection $classReflection, string $propertyName): ExtendedPropertyReflection
156+
/**
157+
* @return ExtendedPropertyReflection
158+
*/
159+
public function getProperty(ClassReflection $classReflection, string $propertyName): PropertyReflection
156160
{
157161
if (!isset($this->propertiesIncludingAnnotations[$classReflection->getCacheKey()][$propertyName])) {
158162
$this->propertiesIncludingAnnotations[$classReflection->getCacheKey()][$propertyName] = $this->createProperty($classReflection, $propertyName, true);

0 commit comments

Comments
 (0)