Skip to content

Commit 81d82be

Browse files
committed
Changed type check
1 parent 00a91db commit 81d82be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ClassesScanner implements ClassesScannerInterface
3636
public function __construct(array $excludePatterns = [], DirectoryList $directoryList = null)
3737
{
3838
$this->excludePatterns = $excludePatterns;
39-
if (!$directoryList instanceof DirectoryList) {
39+
if ($directoryList === null) {
4040
$directoryList = ObjectManager::getInstance()->get(DirectoryList::class);
4141
}
4242
$this->generationDirectory = $directoryList->getPath(DirectoryList::GENERATION);

0 commit comments

Comments
 (0)