Commit c1fd862
committed
bug symfony#53239 [HttpKernel] fix "Cannot redeclare renderSymfonyLogoSvg()" inside phpunit tests (davidesigner)
This PR was merged into the 7.0 branch.
Discussion
----------
[HttpKernel] fix "Cannot redeclare renderSymfonyLogoSvg()" inside phpunit tests
| Q | A
| ------------- | ---
| Branch? | 7.0
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | N/A
| License | MIT
<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.
Additionally (see https://symfony.com/releases):
- Always add tests and ensure they pass.
- Bug fixes must be submitted against the lowest maintained branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too).
- Features and deprecations must be submitted against the latest branch.
- For new features, provide some code snippets to help understand usage.
- Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
- Never break backward compatibility (see https://symfony.com/bc).
-->
In a PHPUnit test case with dataProvider, there was a fatal error:
> Compile Error: Cannot redeclare renderSymfonyLogoSvg() (previously declared in /vendor/symfony/http-kernel/Resources/welcome.html.php:219) (500 Internal Server Error)
This include_once fix the error.
Commits
-------
ac97c9b [HttpKernel] fix "Cannot redeclare renderSymfonyLogoSvg()" inside phpunit testsFile tree
1 file changed
+1
-1
lines changed- src/Symfony/Component/HttpKernel/EventListener
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
0 commit comments