You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/EventDispatcher/LegacyEventDispatcherProxy.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -58,13 +58,13 @@ public function dispatch($event/*, string $eventName = null*/)
58
58
if (\is_object($event)) {
59
59
$eventName =$eventName ??\get_class($event);
60
60
}else {
61
-
@trigger_error(sprintf('Calling the "%s::dispatch()" method with the event name as first argument is deprecated since Symfony 4.3, pass it second and provide the event object first instead.',EventDispatcherInterface::class),E_USER_DEPRECATED);
61
+
@trigger_error(sprintf('Calling the "%s::dispatch()" method with the event name as first argument is deprecated since Symfony 4.3, pass it second and provide the event object first instead.',ContractsEventDispatcherInterface::class),E_USER_DEPRECATED);
62
62
$swap =$event;
63
63
$event =$eventName ??newEvent();
64
64
$eventName =$swap;
65
65
66
66
if (!$eventinstanceof Event) {
67
-
thrownew \TypeError(sprintf('Argument 1 passed to "%s::dispatch()" must be an instance of %s, %s given.',EventDispatcherInterface::class, Event::class,\is_object($event) ?\get_class($event) :\gettype($event)));
67
+
thrownew \TypeError(sprintf('Argument 1 passed to "%s::dispatch()" must be an instance of %s, %s given.',ContractsEventDispatcherInterface::class, Event::class,\is_object($event) ?\get_class($event) :\gettype($event)));