Skip to content

Commit

Permalink
Merge pull request #508 from sunnysideup/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkleiner authored Nov 23, 2022
2 parents 8ec3b2a + 5372d97 commit 51a1ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/QueryCachingMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function process(Schema $schema, string $query, array $context, array $va
__CLASS__
));
}
$vars = $vars['vars'];
$vars = $vars['vars'] ?? [];
$key = $this->generateCacheKey($query, $vars);

// Get successful cache response
Expand Down

0 comments on commit 51a1ae8

Please sign in to comment.