We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bbc133 commit 8774f0eCopy full SHA for 8774f0e
src/SonsOfPHP/Component/EventDispatcher/EventDispatcher.php
@@ -23,7 +23,7 @@ public function __construct(
23
* @param string|null $eventName
24
* Is the event name is null, is will use the event's classname as the Event Name
25
*/
26
- public function dispatch(object $event, string $eventName = null): object
+ public function dispatch(object $event, ?string $eventName = null): object
27
{
28
$eventName ??= $event::class;
29
0 commit comments