Skip to content

Commit

Permalink
FIX Ensure vars is defined in QueryCachingMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysideup authored and Michal Kleiner committed Nov 23, 2022
1 parent 8ec3b2a commit 5372d97
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 5372d97

Please sign in to comment.