Skip to content

Commit 976f188

Browse files
author
Oleksii Korshenko
authored
MAGETWO-70315: Fix condition for autoloader function definitions #10086
2 parents 1e19c93 + d61922b commit 976f188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/src/Magento/Setup/Model/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ private function cleanupGeneratedFiles()
12971297

12981298
// unload Magento autoloader because it may be using compiled definition
12991299
foreach (spl_autoload_functions() as $autoloader) {
1300-
if ($autoloader[0] instanceof \Magento\Framework\Code\Generator\Autoloader) {
1300+
if (is_array($autoloader) && $autoloader[0] instanceof \Magento\Framework\Code\Generator\Autoloader) {
13011301
spl_autoload_unregister([$autoloader[0], $autoloader[1]]);
13021302
break;
13031303
}

0 commit comments

Comments
 (0)