Skip to content

Commit 0a2d0a1

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

File tree

1 file changed

+3
-4
lines changed
  • dev/tests/integration/testsuite/Magento/GraphQl/App/State

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,11 @@ public function getPropertiesFromObject(object $object, $doClone = false, &$didC
9494
continue;
9595
}
9696
if (is_object($value)) {
97-
try {
97+
$reflectionValue = new \ReflectionObject($value);
98+
if ($reflectionValue->isCloneable()) {
99+
$didClone = true;
98100
$properties[$propName] = clone $value;
99-
} catch (\Error $e) {
100-
continue;
101101
}
102-
$didClone = true;
103102
} elseif (is_array($value)) {
104103
$didClone = true;
105104
$properties[$propName] = $this->cloneArray($value);

0 commit comments

Comments
 (0)