Skip to content

Commit 212b301

Browse files
committed
Merged a condition
1 parent 70647be commit 212b301

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ public function getList($path)
8585
$isGeneration = $this->isGeneration($realPath);
8686

8787
// Generation folders should not have their results cached since they may actually change during compile
88-
if (!$isGeneration) {
89-
if (isset($this->fileResults[$realPath])) {
90-
return $this->fileResults[$realPath];
91-
}
88+
if (!$isGeneration && isset($this->fileResults[$realPath])) {
89+
return $this->fileResults[$realPath];
9290
}
9391
if (!(bool)$realPath) {
9492
throw new FileSystemException(new \Magento\Framework\Phrase('Invalid path: %1', [$path]));

0 commit comments

Comments
 (0)