Skip to content

Commit

Permalink
Merge pull request #3106 from acrobat/fix-php8-null-param-deprecation…
Browse files Browse the repository at this point in the history
…s-cookie-bundle

[CookieBundle] Fix php8 deprecation for passing null to stripos
  • Loading branch information
acrobat committed Mar 8, 2022
2 parents 6306349 + 910c0ab commit 81229f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 81229f1

Please sign in to comment.