Skip to content

Commit

Permalink
fix: smol refactor that rector didn't catch
Browse files Browse the repository at this point in the history
  • Loading branch information
shavounet committed Oct 26, 2023
1 parent 064bf1b commit 1adf529
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Handler/CacheTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ protected static function getKey(RequestInterface $request)
$request->getHeaderLine(...),
array_filter(
array_keys($request->getHeaders()),
fn ($header) => 0 !== stripos((string) $header, 'x-')
|| \array_key_exists($header, $vary)
fn ($header) => !str_starts_with(strtolower((string) $header), 'x-') || \array_key_exists($header, $vary)
)
));

Expand Down

0 comments on commit 1adf529

Please sign in to comment.