8000 bug #35423 Fixes a runtime error when accessing the cache panel (Dami… · symfony/symfony@2fd34ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 2fd34ce

Browse files
bug #35423 Fixes a runtime error when accessing the cache panel (DamienHarper)
This PR was merged into the 4.4 branch. Discussion ---------- Fixes a runtime error when accessing the cache panel | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #35419 | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Fixes a runtime error (_Impossible to access an attribute ("value") on a double variable..._) when accessing the cache panel on 4.4.3 Commits ------- 4740b10 Fixes a runtime error (Impossible to access an attribute ("value") on a double variable...) when accessing the cache panel (@see #35419)
2 parents c08fabe + 4740b10 commit 2fd34ce

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@
108108
<div class="metric">
109109
<span class="value">
110110
{% if key == 'time' %}
111-
{{ '%0.2f'|format(1000 * value.value) }} <span class="unit">ms</span>
111+
{{ '%0.2f'|format(1000 * value) }} <span class="unit">ms</span>
112112
{% elseif key == 'hit_read_ratio' %}
113-
{{ value.value ?? 0 }} <span class="unit">%</span>
113+
{{ value ?? 0 }} <span class="unit">%</span>
114114
{% else %}
115115
{{ value }}
116116
{% endif %}

0 commit comments

Comments
 (0)
0