- Affected version
- 2.2.8 Patch 1
The following snippet (more realistically from variable usage) will cause a warning in php 8.1+
Will cause this error:
This affects a lot of the filters which handle stringy input that rattles down to an internal php function.
Test cases;
XML:
{{ null|file_size }}
Will cause this error:
Code:
Template error: [E_DEPRECATED] number_format(): Passing null to parameter #1 ($num) of type float is deprecated
This affects a lot of the filters which handle stringy input that rattles down to an internal php function.
Test cases;
XML:
{{ null|file_size }}
{{ null|format }}
{{ null|hex }}
{{ null|host }}
{{ null|ip }}
{{ null|number_short }}
{{ null|numeric_keys_only }}
{{ null|pad(null,null) }}
{{ null|split }}
{{ null|strip_tags }}
{{ null|to_lower }}
{{ null|to_upper }}
{{ null|de_camel }}