Skip to content

Commit 7e86217

Browse files
committed
fixup! fixup! Add MemoizationPropertyRule
1 parent c516123 commit 7e86217

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/PHPStan/Build/MemoizationPropertyRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ public function processNode(Node $node, Scope $scope): array
6363
return [];
6464
}
6565

66-
if ($this->skipTests && str_starts_with($this->fileHelper->normalizePath($scope->getFile()), $this->fileHelper->normalizePath(dirname(__DIR__, 3) . '/tests'))) {
66+
if ($this->areNodesNotEqual($ifNode->cond->left, [$ifThenNode->var])) {
6767
return [];
6868
}
6969

70-
if ($this->areNodesNotEqual($ifNode->cond->left, [$ifThenNode->var])) {
70+
if ($this->skipTests && str_starts_with($this->fileHelper->normalizePath($scope->getFile()), $this->fileHelper->normalizePath(dirname(__DIR__, 3) . '/tests'))) {
7171
return [];
7272
}
7373

0 commit comments

Comments
 (0)