Skip to content

[BUG] - PHP Deprecated under Debian 12 for scenarioExpression.class.php on line 1278 #3152

@madcow27

Description

@madcow27

Description

PHP Deprecated notice under Debian 12 / PHP 8.2.2 :
0033|PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/core/class/scenarioExpression.class.php on line 1278 0034|PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/html/core/class/scenarioExpression.class.php on line 1278

Since $value could be NULL.

Could be solved by normalizing $value before ?
$s = (string) ($value ?? '');

Type de matériel / Hardware type

VM

Version de Jeedom / Jeedom Version

4.5

Navigateur / Browser

No response

Étapes pour reproduire / Steps to reproduce

Don't know

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions