Skip to content

Commit

Permalink
Remove deprecations for php8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
arnedesmedt committed Jan 17, 2025
1 parent a726556 commit ee40e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit ee40e37

Please sign in to comment.