- πΊπΈUnited States smustgrave
This still needs a test case
Also would be helpful to have steps to reproduce this issue.
- πΊπΈUnited States mortona2k Seattle
I added steps to create a view that triggers the error and is fixed with this patch.
watchdog error:
TypeError: round(): Argument #1 ($num) must be of type int|float, string given in round() (line 173 of /xxx_proj_folder/docroot/core/modules/views/src/Plugin/views/field/NumericField.php)
#0 /xxx_proj_folder/docroot/core/modules/views/src/Plugin/views/field/NumericField.php(173): round('2021-06-29', 0)
code:
$value = round($value, $precision);
value is string '2021-06-29' (just example)
if php version is 7, it will return '2021' and no error,
php 8 will throw this error.
related issue:
https://www.drupal.org/project/drupal/issues/3151654
π
Date field is not displaying correct value on a views with aggregation max/min
Needs work
Needs work
10.1 β¨
Last updated
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Used to track the progress of issues reviewed by the Drupal Needs Review Queue Initiative.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This still needs a test case
Also would be helpful to have steps to reproduce this issue.
I added steps to create a view that triggers the error and is fixed with this patch.