Skip to content

Commit dd1f8a0

Browse files
committed
bug #48271 [WebProfilerBundle] Fix form panel when there are no view vars (nicolas-grekas)
This PR was merged into the 6.2 branch. Discussion ---------- [WebProfilerBundle] Fix form panel when there are no view vars | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- a1498da [WebProfilerBundle] Fix form panel when there are no view vars
2 parents 648d84f + a1498da commit dd1f8a0

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@
714714
</tr>
715715
</thead>
716716
<tbody>
717-
{% for variable, value in data.view_vars %}
717+
{% for variable, value in data.view_vars ?? [] %}
718718
<tr>
719719
<th scope="row">{{ variable }}</th>
720720
<td>{{ profiler_dump(value) }}</td>

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