We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a91db commit 81d82beCopy full SHA for 81d82be
setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php
@@ -36,7 +36,7 @@ class ClassesScanner implements ClassesScannerInterface
36
public function __construct(array $excludePatterns = [], DirectoryList $directoryList = null)
37
{
38
$this->excludePatterns = $excludePatterns;
39
- if (!$directoryList instanceof DirectoryList) {
+ if ($directoryList === null) {
40
$directoryList = ObjectManager::getInstance()->get(DirectoryList::class);
41
}
42
$this->generationDirectory = $directoryList->getPath(DirectoryList::GENERATION);
0 commit comments