Skip to content

Commit 03d8327

Browse files
Fix
1 parent 315bb13 commit 03d8327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Operators/InvalidAssignVarRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function processNode(Node $node, Scope $scope): array
7272
private function containsNonAssignableExpression(Expr $expr): bool
7373
{
7474
if ($expr instanceof Expr\Variable) {
75-
return $expr->name !== 'this';
75+
return $expr->name === 'this';
7676
}
7777

7878
if ($expr instanceof Expr\PropertyFetch) {

0 commit comments

Comments
 (0)