@@ -17,7 +17,7 @@ class RulesAction extends RulesAbstractPlugin implements RulesActionInterface {
1717 /**
1818 * Execute the callback and update/save data as specified by the action.
1919 */
20- protected function executeCallback (array $ args , RulesState $ state = NULL ) {
20+ protected function executeCallback (array $ args , ? RulesState $ state = NULL ) {
2121 rules_log ('Evaluating the action %name. ' , array (
2222 '%name ' => $ this ->label ($ this ->elementName ),
2323 ), RulesLog::INFO , $ this );
@@ -107,7 +107,7 @@ class RulesCondition extends RulesAbstractPlugin implements RulesConditionInterf
107107 return $ this ->negate ;
108108 }
109109
110- protected function executeCallback (array $ args , RulesState $ state = NULL ) {
110+ protected function executeCallback (array $ args , ? RulesState $ state = NULL ) {
111111 $ return = (bool ) $ this ->__call ('execute ' , empty ($ this ->info ['named parameter ' ]) ? $ args : array ($ args ));
112112 $ return = $ this ->negate ? !$ return : $ return ;
113113 rules_log ('The condition %name evaluated to %bool ' , array (
@@ -416,7 +416,7 @@ class RulesReactionRule extends Rule implements RulesTriggerableInterface {
416416 /**
417417 * Implements RulesTriggerableInterface::event().
418418 */
419- public function event ($ event_name , array $ settings = NULL ) {
419+ public function event ($ event_name , ? array $ settings = NULL ) {
420420 // Process any settings and determine the configured event's name.
421421 if ($ settings ) {
422422 $ handler = rules_get_event_handler ($ event_name , $ settings );
0 commit comments