Skip to content

Commit

Permalink
Fixed php notice when invalid ui_component config is used
Browse files Browse the repository at this point in the history
  • Loading branch information
vovayatsyuk committed Nov 14, 2017
1 parent d4e666f commit 7f6b560
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ protected function createObject($type, $args)
protected function resolveArgument(&$argument, $paramType, $paramDefault, $paramName, $requestedType)
{
if ($paramType && $argument !== $paramDefault && !is_object($argument)) {
$argumentType = $argument['instance'];
if (!isset($argument['instance']) || $argument !== (array)$argument) {
throw new \UnexpectedValueException(
'Invalid parameter configuration provided for $' . $paramName . ' argument of ' . $requestedType
);
}
$argumentType = $argument['instance'];

if (isset($argument['shared'])) {
$isShared = $argument['shared'];
Expand Down

0 comments on commit 7f6b560

Please sign in to comment.