Skip to content

Commit da5e9d1

Browse files
committed
Fixed compatibility with PHPStan 0.12
1 parent e193d17 commit da5e9d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Properties/MissingPropertyTypehintRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function processNode(Node $node, Scope $scope): array
3030
}
3131

3232
$propertyReflection = $scope->getClassReflection()->getNativeProperty($node->name->name);
33-
$returnType = $propertyReflection->getType();
33+
$returnType = $propertyReflection->getReadableType();
3434
if ($returnType instanceof MixedType && !$returnType->isExplicitMixed()) {
3535
return [
3636
sprintf(

0 commit comments

Comments
 (0)