Skip to content

Commit f82dde1

Browse files
committed
ACPT-1388: Add queries to GraphQlStateTest.php
1 parent 2b97312 commit f82dde1

File tree

1 file changed

+1
-2
lines changed
  • dev/tests/integration/testsuite/Magento/GraphQl/App/State

1 file changed

+1
-2
lines changed

dev/tests/integration/testsuite/Magento/GraphQl/App/State/Collector.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
namespace Magento\GraphQl\App\State;
99

10-
use Magento\Framework\Exception\InputException;
1110
use Magento\Framework\ObjectManagerInterface;
1211

1312
/**
@@ -95,12 +94,12 @@ public function getPropertiesFromObject(object $object, $doClone = false, &$didC
9594
continue;
9695
}
9796
if (is_object($value)) {
98-
$didClone = true;
9997
try {
10098
$properties[$propName] = clone $value;
10199
} catch (\Error $e) {
102100
continue;
103101
}
102+
$didClone = true;
104103
} elseif (is_array($value)) {
105104
$didClone = true;
106105
$properties[$propName] = $this->cloneArray($value);

0 commit comments

Comments
 (0)