Skip to content

Commit

Permalink
bug #35423 Fixes a runtime error when accessing the cache panel (Dami…
Browse files Browse the repository at this point in the history
…enHarper)

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)
  • Loading branch information
nicolas-grekas committed Jan 23, 2020
2 parents c08fabe + 4740b10 commit 2fd34ce
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -108,9 +108,9 @@
<div class="metric">
<span class="value">
{% if key == 'time' %}
{{ '%0.2f'|format(1000 * value.value) }} <span class="unit">ms</span>
{{ '%0.2f'|format(1000 * value) }} <span class="unit">ms</span>
{% elseif key == 'hit_read_ratio' %}
{{ value.value ?? 0 }} <span class="unit">%</span>
{{ value ?? 0 }} <span class="unit">%</span>
{% else %}
{{ value }}
{% endif %}
Expand Down

0 comments on commit 2fd34ce

Please sign in to comment.