Skip to content

Commit 0677c17

Browse files
committed
Allow classes without contructors
1 parent 38c2061 commit 0677c17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup/src/Magento/Setup/Module/Di/Code/Reader/Decorator/Area.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getList($path)
5050
{
5151
$classes = [];
5252
foreach ($this->classesScanner->getList($path) as $className) {
53-
$classes[$className] = $this->classReaderDecorator->getConstructor($className);
53+
$classes[$className] = (array) $this->classReaderDecorator->getConstructor($className);
5454
}
5555

5656
return $classes;

setup/src/Magento/Setup/Module/Di/Definition/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ public function getInstancesNamesList()
9191
*/
9292
public function hasInstance($instanceName)
9393
{
94-
return isset($this->definitions[$instanceName]);
94+
return array_key_exists($instanceName, $this->definitions);
9595
}
9696
}

0 commit comments

Comments
 (0)