Skip to content

Commit d60ecc4

Browse files
committed
Add missing dots at the end of exception messages
1 parent b7e1fd1 commit d60ecc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Loader/ObjectLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ public function load($resource, $type = null)
5757
$loaderObject = $this->getObject($parts[0]);
5858

5959
if (!\is_object($loaderObject)) {
60-
throw new \TypeError(sprintf('%s:getObject() must return an object: %s returned', static::class, \gettype($loaderObject)));
60+
throw new \TypeError(sprintf('%s:getObject() must return an object: %s returned.', static::class, \gettype($loaderObject)));
6161
}
6262

6363
if (!\is_callable([$loaderObject, $method])) {
64-
throw new \BadMethodCallException(sprintf('Method "%s" not found on "%s" when importing routing resource "%s"', $method, \get_class($loaderObject), $resource));
64+
throw new \BadMethodCallException(sprintf('Method "%s" not found on "%s" when importing routing resource "%s".', $method, \get_class($loaderObject), $resource));
6565
}
6666

6767
$routeCollection = $loaderObject->$method($this);
6868

6969
if (!$routeCollection instanceof RouteCollection) {
7070
$type = \is_object($routeCollection) ? \get_class($routeCollection) : \gettype($routeCollection);
7171

72-
throw new \LogicException(sprintf('The %s::%s method must return a RouteCollection: %s returned', \get_class($loaderObject), $method, $type));
72+
throw new \LogicException(sprintf('The %s::%s method must return a RouteCollection: %s returned.', \get_class($loaderObject), $method, $type));
7373
}
7474

7575
// make the object file tracked so that if it changes, the cache rebuilds

0 commit comments

Comments
 (0)