Skip to content

Commit ecd0455

Browse files
authored
Fixed PHPStan
1 parent e671a53 commit ecd0455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/TestFramework/Unit/Helper/ObjectManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public function getConstructArguments($className, array $arguments = [])
286286
}
287287
}
288288

289-
$constructArguments[$parameterName] = null === $object ? $defaultValue : $object;
289+
$constructArguments[$parameterName] = !isset($object) || null === $object ? $defaultValue : $object;
290290
}
291291
return $constructArguments;
292292
}

0 commit comments

Comments
 (0)