Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit e18f1d2

Browse files
Merge pull request #1720 from magento-engcom/2.2-develop-prs
[EngCom] Public Pull Requests - 2.2-develop - MAGETWO-83815: Fixed php notice when invalid ui_component config is used #12239
2 parents 22f54a4 + dc31103 commit e18f1d2

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)