Skip to content

Commit 8774f0e

Browse files
authored
[EventDispatcher] Replace deprecated implicit nullable (SonsOfPHP#240)
1 parent 4bbc133 commit 8774f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SonsOfPHP/Component/EventDispatcher/EventDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(
2323
* @param string|null $eventName
2424
* Is the event name is null, is will use the event's classname as the Event Name
2525
*/
26-
public function dispatch(object $event, string $eventName = null): object
26+
public function dispatch(object $event, ?string $eventName = null): object
2727
{
2828
$eventName ??= $event::class;
2929

0 commit comments

Comments
 (0)