diff --git a/src/Event/ActionEventEmitter.php b/src/Event/ActionEventEmitter.php index bde1277..50bfff6 100644 --- a/src/Event/ActionEventEmitter.php +++ b/src/Event/ActionEventEmitter.php @@ -26,7 +26,7 @@ interface ActionEventEmitter * * @return ActionEvent that can be triggered by the ActionEventEmitter */ - public function getNewActionEvent(string $name = null, $target = null, $params = null): ActionEvent; + public function getNewActionEvent(?string $name = null, $target = null, $params = null): ActionEvent; public function dispatch(ActionEvent $event): void; diff --git a/src/Event/ProophActionEventEmitter.php b/src/Event/ProophActionEventEmitter.php index bb5bb7d..0e0bd4f 100644 --- a/src/Event/ProophActionEventEmitter.php +++ b/src/Event/ProophActionEventEmitter.php @@ -42,7 +42,7 @@ public function __construct(array $availableEventNames = []) * * @return ActionEvent that can be triggered by the ActionEventEmitter */ - public function getNewActionEvent(string $name = null, $target = null, $params = null): ActionEvent + public function getNewActionEvent(?string $name = null, $target = null, $params = null): ActionEvent { if ($name === null) { $name = 'action_event';