PHP 8.1 deprecation notice in DataComparison condition plugin

Created on 7 October 2022, about 2 years ago
Updated 2 February 2024, 10 months ago

A deprecated function PHP notice is generated when using a DataComparison plugin that compares the value to empty:

Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in Drupal\business_rules\Plugin\BusinessRulesCondition\DataComparison->process()(line 117 of modules/contrib/business_rules/src/Plugin/BusinessRulesCondition/DataComparison.php).
Drupal\business_rules\Plugin\BusinessRulesCondition\DataComparison-›process (Object, Object) (Line: 239)
Drupal\business_rules\Entity\Condition-›process (Object) (Line: 532)
Drupal\business_rules\Util\BusinessRulesProcessor->isConditionvalid(Object,Object)(Line:46)
Drupal\business_rules\Plugin\ BusinessRulesCondition\LogicalAnd-›process(Object, Object) (Line: 239)
Drupal\business_rules\Entity\Condition-›process (Object) (Line: 532)
Drupal\business_rules\Util\BusinessRulesProcessor->isConditionValid(Object,Object)(Line:364)
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States mediabounds

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024