Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Event/ActionEventEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Event/ProophActionEventEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Loading