From 910c0ab0cc64f19f8d986af5a40f67551e71761a Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Tue, 8 Mar 2022 20:42:08 +0100 Subject: [PATCH] [CookieBundle] Fix php8 deprecation for passing null to stripos --- .../CookieBundle/EventSubscriber/CookieBarEventSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kunstmaan/CookieBundle/EventSubscriber/CookieBarEventSubscriber.php b/src/Kunstmaan/CookieBundle/EventSubscriber/CookieBarEventSubscriber.php index f7903ec30f..62074f4225 100644 --- a/src/Kunstmaan/CookieBundle/EventSubscriber/CookieBarEventSubscriber.php +++ b/src/Kunstmaan/CookieBundle/EventSubscriber/CookieBarEventSubscriber.php @@ -76,7 +76,7 @@ public function onKernelResponse($event) )) || 'html' !== $request->getRequestFormat() || !$this->cookieHelper->isGrantedForCookieBundle($request) - || false !== stripos($response->headers->get('Content-Disposition'), 'attachment;') + || false !== stripos($response->headers->get('Content-Disposition', ''), 'attachment;') ) { return; }