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 13, 2023
1 parent fd9647a commit de2913c
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((string) $header, 'x-') || \array_key_exists($header, $vary)
)
));

Expand Down

0 comments on commit de2913c

Please sign in to comment.