Skip to content

Commit 619edc5

Browse files
author
Miro Michalicka
committed
Fix condition for autoloader function definitions which are not array but Closure object.
1 parent 1e19c93 commit 619edc5

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)