Argument #1 ($num) must be of type int|float, string given in abs()

Created on 12 October 2023, about 1 year ago

Problem/Motivation

Accessing the format settings in view, when the current theme has a breakpoint range with 2 values (like (min-width: 576px) and (max-width: 767px)), returns this error:

TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in abs() (line 281 of modules/contrib/gliderjs/src/Plugin/views/style/Gliderjs.php).

Steps to reproduce

As above. I was using Radix theme.

Proposed resolution

https://www.php.net/manual/en/filter.filters.sanitize.php#119697

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇦🇺Australia elgandoz Canberra

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

Comments & Activities

Production build 0.71.5 2024