Skip to content

Commit

Permalink
Fix type casting issue in Idempotency middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
jewei committed Apr 26, 2024
1 parent a504ec1 commit 51cd43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/Idempotency.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function hasCache(): bool
*/
protected function getCache(): array
{
return Cache::get($this->resolveCacheKey());
return (array) Cache::get($this->resolveCacheKey());
}

/**
Expand Down

0 comments on commit 51cd43a

Please sign in to comment.