Skip to content

Commit

Permalink
Add missing dots at the end of exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 15, 2020
1 parent 2f67a86 commit 9d4e229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ContainerAwareEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function addListenerService($eventName, $callback, $priority = 0)
@trigger_error(sprintf('The %s class is deprecated since Symfony 3.3 and will be removed in 4.0. Use EventDispatcher with closure factories instead.', __CLASS__), E_USER_DEPRECATED);

if (!\is_array($callback) || 2 !== \count($callback)) {
throw new \InvalidArgumentException('Expected an ["service", "method"] argument');
throw new \InvalidArgumentException('Expected an ["service", "method"] argument.');
}

$this->listenerIds[$eventName][] = [$callback[0], $callback[1], $priority];
Expand Down

0 comments on commit 9d4e229

Please sign in to comment.