Skip to content

Commit

Permalink
ACPT-1388: Resolve failures in GraphQlStateTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aa-kashk committed Jul 19, 2023
1 parent 652de7a commit 7ea9e09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ protected function setUp(): void
* @dataProvider queryDataProvider
* @param string $query
* @param array $variables
* @param array $variables2 This is the second set of variables to be used in the second request
* @param string $operationName
* @param string $expected
* @return void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ private function cloneArray(array $array) : array
return array_map(
function ($element) {
if (is_object($element)) {
return clone $element;
$reflectionElement = new \ReflectionObject($element);
if ($reflectionElement->isCloneable()) {
return clone $element;
}
}
if (is_array($element)) {
return $this->cloneArray($element);
Expand Down

0 comments on commit 7ea9e09

Please sign in to comment.