Skip to content

Commit c7b4437

Browse files
committed
definitely an array
1 parent aace323 commit c7b4437

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/Gql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public function executeQuery(
534534

535535
[$dep, $duration] = $elementsService->stopCollectingCacheInfo();
536536

537-
if (empty($event->result['errors']) && $cacheKey && $this->shouldCache($event->result ?? [])) {
537+
if (empty($event->result['errors']) && $cacheKey && $this->shouldCache($event->result)) {
538538
$this->setCachedResult($cacheKey, $event->result, $dep, $duration);
539539
}
540540
}

0 commit comments

Comments
 (0)