Skip to content

Commit 2eb04bd

Browse files
committed
allow different property name
1 parent 755d81c commit 2eb04bd

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

rules/TypeDeclaration/NodeAnalyzer/ClassMethodAndPropertyAnalyzer.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ private function isLocalPropertyVariableAssign(Stmt $onlyClassMethodStmt, string
9898
}
9999

100100
$propertyFetch = $assignVar;
101-
if (! $this->nodeNameResolver->isName($propertyFetch->var, 'this')) {
102-
return false;
103-
}
104-
105-
return $this->nodeNameResolver->isName($propertyFetch->name, $propertyName);
101+
return $this->nodeNameResolver->isName($propertyFetch->var, 'this');
106102
}
107103
}

0 commit comments

Comments
 (0)