PHP 8.1 Compatibility issue - PHP message: Error: Unknown named parameter $data
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3329853. -->
Reported by: [freelock](https://www.drupal.org/user/313537)
>>>
<p>After updating to PHP 8.1, posting a message using Rules fails with </p>
<p>2022/12/27 17:01:50 [error] 740#740: *17830742 FastCGI sent in stderr: "PHP message: Error: Unknown named parameter $data in /var/www/html/ledgersmb.org/modules/contrib/rules/src/Core/RulesActionBase.php on line 139 #0 modules/contrib/rules/src/Core/RulesActionBase.php(139): call_user_func_array()<br>
#1 modules/contrib/rules/src/Plugin/RulesExpression/ActionExpression.php(110): Drupal\rules\Core\RulesActionBase->execute()</p>
<p>... this is because PHP 8 added Named Parameters to the language, and the parameter $data was named $entity in the rule action.</p>
issue