We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e193d17 commit da5e9d1Copy full SHA for da5e9d1
src/Rules/Properties/MissingPropertyTypehintRule.php
@@ -30,7 +30,7 @@ public function processNode(Node $node, Scope $scope): array
30
}
31
32
$propertyReflection = $scope->getClassReflection()->getNativeProperty($node->name->name);
33
- $returnType = $propertyReflection->getType();
+ $returnType = $propertyReflection->getReadableType();
34
if ($returnType instanceof MixedType && !$returnType->isExplicitMixed()) {
35
return [
36
sprintf(
0 commit comments