We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 315bb13 commit 03d8327Copy full SHA for 03d8327
src/Rules/Operators/InvalidAssignVarRule.php
@@ -72,7 +72,7 @@ public function processNode(Node $node, Scope $scope): array
72
private function containsNonAssignableExpression(Expr $expr): bool
73
{
74
if ($expr instanceof Expr\Variable) {
75
- return $expr->name !== 'this';
+ return $expr->name === 'this';
76
}
77
78
if ($expr instanceof Expr\PropertyFetch) {
0 commit comments