Skip to content

Commit 90addb7

Browse files
⏫ Forwardport of #12239 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/12239.patch (created by @vovayatsyuk) based on commit(s): 1. 7f6b560
1 parent 8e77e2f commit 90addb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/ObjectManager/Factory/AbstractFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ protected function createObject($type, $args)
127127
protected function resolveArgument(&$argument, $paramType, $paramDefault, $paramName, $requestedType)
128128
{
129129
if ($paramType && $argument !== $paramDefault && !is_object($argument)) {
130-
$argumentType = $argument['instance'];
131130
if (!isset($argument['instance']) || $argument !== (array)$argument) {
132131
throw new \UnexpectedValueException(
133132
'Invalid parameter configuration provided for $' . $paramName . ' argument of ' . $requestedType
134133
);
135134
}
135+
$argumentType = $argument['instance'];
136136

137137
if (isset($argument['shared'])) {
138138
$isShared = $argument['shared'];

0 commit comments

Comments
 (0)