We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd50bb0 commit aadc724Copy full SHA for aadc724
create_framework/event_dispatcher.rst
@@ -200,7 +200,7 @@ Let's refactor the code a bit by moving the Google listener to its own class::
200
$response = $event->getResponse();
201
202
if ($response->isRedirection()
203
- || ($response->headers->has('Content-Type') && false === str_contains($response->headers->get('Content-Type'), 'html'))
+ || ($response->headers->has('Content-Type') && !str_contains($response->headers->get('Content-Type'), 'html'))
204
|| 'html' !== $event->getRequest()->getRequestFormat()
205
) {
206
return;
0 commit comments