- Issue created by @achton
When rendering the block plugin, I get the deprecation warning: "Implicit conversion from float 24.821526716109474 to int loses precision in Drupal\Core\Datetime\DateFormatter->formatInterval() (line 154 of core/lib/Drupal/Core/Datetime/DateFormatter.php)."
This appears to be due to the DateIntervalStatistic
trait calling formatInterval()
on a floatval, which implicitly gets rounded.
Insert the Queue statistics list block on a page and render it, ensure some items are in queue.
Explicitly round the floatval before formatting with formatInterval()
.
Review patch.
Needs review
2.0
Code