Skip to content

Commit

Permalink
Fix quotes in exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 16, 2020
1 parent 4ad8e14 commit cf57788
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Debug/TraceableEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function dispatch($event/*, string $eventName = null*/)
$eventName = $swap;

if (!$event instanceof Event) {
throw new \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)));
throw new \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)));
}
}

Expand Down
2 changes: 1 addition & 1 deletion EventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function dispatch($event/*, string $eventName = null*/)
$event = $eventName ?? new Event();
$eventName = $swap;
} else {
throw new \TypeError(sprintf('Argument 1 passed to "%s::dispatch()" must be an object, %s given.', EventDispatcherInterface::class, \is_object($event) ? \get_class($event) : \gettype($event)));
throw new \TypeError(sprintf('Argument 1 passed to "%s::dispatch()" must be an object, "%s" given.', EventDispatcherInterface::class, \is_object($event) ? \get_class($event) : \gettype($event)));
}

if (null !== $this->optimized && null !== $eventName) {
Expand Down
2 changes: 1 addition & 1 deletion LegacyEventDispatcherProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function dispatch($event/*, string $eventName = null*/)
$event = $eventName ?? new Event();
$eventName = $swap;
} else {
throw new \TypeError(sprintf('Argument 1 passed to "%s::dispatch()" must be an object, %s given.', ContractsEventDispatcherInterface::class, \is_object($event) ? \get_class($event) : \gettype($event)));
throw new \TypeError(sprintf('Argument 1 passed to "%s::dispatch()" must be an object, "%s" given.', ContractsEventDispatcherInterface::class, \is_object($event) ? \get_class($event) : \gettype($event)));
}

$listeners = $this->getListeners($eventName);
Expand Down

0 comments on commit cf57788

Please sign in to comment.