Skip to content

Commit 7b7f798

Browse files
committed
[WebProfiler] Fix error "Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string ..." in case of 'Content-Type' equals null in dev environment with no debug. Tests
1 parent 19799f1 commit 7b7f798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/WebDebugToolbarListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function testNullContentTypeWithNoDebugEnv()
355355
$listener = new WebDebugToolbarListener($this->getTwigMock(), false, WebDebugToolbarListener::ENABLED, null);
356356
$listener->onKernelResponse($event);
357357

358-
$this->assertNull($response->headers->get('Content-Type'));
358+
$this->expectNotToPerformAssertions();
359359
}
360360

361361
protected function getTwigMock($render = 'WDT')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy