Skip to content

Commit 9b86df9

Browse files
committed
ReadOnlyPropertyAssignRefRule does not make sense for StaticPropertyFetch
1 parent 7a263de commit 9b86df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Properties/ReadOnlyPropertyAssignRefRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function getNodeType(): string
2525

2626
public function processNode(Node $node, Scope $scope): array
2727
{
28-
if (!$node->expr instanceof Node\Expr\PropertyFetch && !$node->expr instanceof Node\Expr\StaticPropertyFetch) {
28+
if (!$node->expr instanceof Node\Expr\PropertyFetch) {
2929
return [];
3030
}
3131

0 commit comments

Comments
 (0)