From de2913cdf2d0ef3947943cf8088b4ae3436a88fd Mon Sep 17 00:00:00 2001 From: Valentin Clavreul Date: Fri, 13 Oct 2023 11:14:54 +0200 Subject: [PATCH] fix: smol refactor that rector didn't catch --- src/Handler/CacheTrait.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Handler/CacheTrait.php b/src/Handler/CacheTrait.php index b66676c..43c0995 100644 --- a/src/Handler/CacheTrait.php +++ b/src/Handler/CacheTrait.php @@ -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) ) ));