Skip to content

Commit 1fcae1c

Browse files
committed
TooWidePropertyTypeRule - ignore properties covered by ReadWritePropertiesExtension
1 parent 7453f4f commit 1fcae1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Rules/TooWideTypehints/TooWidePropertyTypeRule.php

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public function processNode(Node $node, Scope $scope): array
6161
continue;
6262
}
6363
foreach ($this->extensionProvider->getExtensions() as $extension) {
64+
if ($extension->isAlwaysRead($propertyReflection, $propertyName)) {
65+
continue 2;
66+
}
6467
if ($extension->isAlwaysWritten($propertyReflection, $propertyName)) {
6568
continue 2;
6669
}

0 commit comments

Comments
 (0)