8000 Fix twig deprecations in web profiler twig files · symfony/symfony@a2c3ad6 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2c3ad6

Browse files
committed
Fix twig deprecations in web profiler twig files
1 parent 4e1cf89 commit a2c3ad6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,31 +458,31 @@
458458
</div>
459459
</div>
460460

461-
<div class="tab {{ data.submitted_data ?? [] is empty ? 'disabled' }}">
461+
<div class="tab {{ (data.submitted_data ?? []) is empty ? 'disabled' }}">
462462
<h3 class="tab-title">Submitted Data</h3>
463463

464464
<div class="tab-content">
465465
{{ _self.render_form_submitted_data(data) }}
466466
</div>
467467
</div>
468468

469-
<div class="tab {{ data.passed_options ?? [] is empty ? 'disabled' }}">
469+
<div class="tab {{ (data.passed_options ?? []) is empty ? 'disabled' }}">
470470
<h3 class="tab-title">Passed Options</h3>
471471

472472
<div class="tab-content">
473473
{{ _self.render_form_passed_options(data) }}
474474
</div>
475475
</div>
476476

477-
<div class="tab {{ data.resolved_options ?? [] is empty ? 'disabled' }}">
477+
<div class="tab {{ (data.resolved_options ?? []) is empty ? 'disabled' }}">
478478
<h3 class="tab-title">Resolved Options</h3>
479479

480480
<div class="tab-content">
481481
{{ _self.render_form_resolved_options(data) }}
482482
</div>
483483
</div>
484484

485-
<div class="tab {{ data.view_vars ?? [] is empty ? 'disabled' }}">
485+
<div class="tab {{ (data.view_vars ?? []) is empty ? 'disabled' }}">
486486
<h3 class="tab-title">View Vars</h3>
487487

488488
<div class="tab-content">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
{{- 'Content: ' ~ notification.getContent() }}<br/>
139139
{{- 'Importance: ' ~ notification.getImportance() }}<br/>
140140
{{- 'Emoji: ' ~ (notification.getEmoji() is empty ? '(empty)' : notification.getEmoji()) }}<br/>
141-
{{- 'Exception: ' ~ notification.getException() ?? '(empty)' }}<br/>
141+
{{- 'Exception: ' ~ (notification.getException() ?? '(empty)') }}<br/>
142142
{{- 'ExceptionAsString: ' ~ (notification.getExceptionAsString() is empty ? '(empty)' : notification.getExceptionAsString()) }}
143143
</pre>
144144
</div>

0 commit comments

Comments
 (0)
0