Skip to content

Commit ac97c9b

Browse files
committed
[HttpKernel] fix "Cannot redeclare renderSymfonyLogoSvg()" inside phpunit tests
1 parent 8c57645 commit ac97c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/EventListener/RouterListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private function createWelcomeResponse(): Response
159159
$docVersion = substr(Kernel::VERSION, 0, 3);
160160

161161
ob_start();
162-
include \dirname(__DIR__).'/Resources/welcome.html.php';
162+
include_once \dirname(__DIR__).'/Resources/welcome.html.php';
163163

164164
return new Response(ob_get_clean(), Response::HTTP_NOT_FOUND);
165165
}

0 commit comments

Comments
 (0)