TypeError: round(): Argument #1 ($num) must be of type int|float

Created on 24 April 2025, 7 days ago

Problem/Motivation

When you create a view, and you use contact_id, the contact_id is retrieved as a string, but showed in the view as a number. I suspect that in the past this was no problem because somewhere there was an implicit conversion. Now it throws an ugly error.

TypeError: round(): Argument #1 ($num) must be of type int|float, string given in round() (line 173 of /home/gddkvsnl/mijntest.bindkracht10.nl/web/core/modules/views/src/Plugin/views/field/NumericField.php).
🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇳🇱Netherlands Klaas Culemborg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024