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 708e761 commit 16178c6Copy full SHA for 16178c6
ImmutableEventDispatcher.php
@@ -30,11 +30,11 @@ public function __construct(EventDispatcherInterface $dispatcher)
30
*
31
* @param string|null $eventName
32
*/
33
- public function dispatch($event/*, string $eventName = null*/)
+ public function dispatch($event/*, string $eventName = null */)
34
{
35
$eventName = 1 < \func_num_args() ? func_get_arg(1) : null;
36
37
- if (is_scalar($event)) {
+ if (\is_scalar($event)) {
38
// deprecated
39
$swap = $event;
40
$event = $eventName ?? new Event();
0 commit comments