Skip to content

Commit f24f574

Browse files
committed
Fix argumentresolver unit test failure
1 parent 84c45e4 commit f24f574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup/src/Magento/Setup/Module/Di/Compiler/ArgumentsResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ private function getConfiguredArguments($instanceType)
193193
$configuredArguments = $this->diContainerConfig->getArguments($instanceType);
194194
return array_map(
195195
function ($type) {
196-
if (!is_array($type)) {
196+
if (is_object($type)) {
197197
return;
198198
}
199199

200-
if (isset($type['instance'])) {
200+
if (is_array($type) && isset($type['instance'])) {
201201
$type['instance'] = ltrim($type['instance'], '\\');
202202
}
203203

0 commit comments

Comments
 (0)