Skip to content

Commit 8f0a007

Browse files
authored
Merge pull request #84 from arnedesmedt/feature/php8.4-remove-deprecations
Remove deprecations for php8.4
2 parents a726556 + ee40e37 commit 8f0a007

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Event/ActionEventEmitter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface ActionEventEmitter
2626
*
2727
* @return ActionEvent that can be triggered by the ActionEventEmitter
2828
*/
29-
public function getNewActionEvent(string $name = null, $target = null, $params = null): ActionEvent;
29+
public function getNewActionEvent(?string $name = null, $target = null, $params = null): ActionEvent;
3030

3131
public function dispatch(ActionEvent $event): void;
3232

src/Event/ProophActionEventEmitter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(array $availableEventNames = [])
4242
*
4343
* @return ActionEvent that can be triggered by the ActionEventEmitter
4444
*/
45-
public function getNewActionEvent(string $name = null, $target = null, $params = null): ActionEvent
45+
public function getNewActionEvent(?string $name = null, $target = null, $params = null): ActionEvent
4646
{
4747
if ($name === null) {
4848
$name = 'action_event';

0 commit comments

Comments
 (0)