You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #42249 [WebProfilerBundle] Use multi line comment (Nyholm)
This PR was merged into the 5.4 branch.
Discussion
----------
[WebProfilerBundle] Use multi line comment
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#42248
| License | MIT
| Doc PR |
Since the css/js is "fake minified" (we just remove the new line character) we cannot use `//`. See comment in the head of `base_js.html.twig`:
```
{# Caution: the contents of this file are processed by Twig before loading
them as JavaScript source code. Always use '/*' comments instead
of '//' comments to avoid impossible-to-debug side-effects #}
```
I also added a small test to enforce this.
Commits
-------
f7d516e [WebProfilerBundle] Use multi line comment
0 commit comments