Skip to content

Commit a1531aa

Browse files
committed
Add missing dots at the end of exception messages
1 parent c137790 commit a1531aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Loader/ObjectRouteLoader.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function load($resource, $type = null)
4646
{
4747
$parts = explode(':', $resource);
4848
if (2 != \count($parts)) {
49-
throw new \InvalidArgumentException(sprintf('Invalid resource "%s" passed to the "service" route loader: use the format "service_name:methodName"', $resource));
49+
throw new \InvalidArgumentException(sprintf('Invalid resource "%s" passed to the "service" route loader: use the format "service_name:methodName".', $resource));
5050
}
5151

5252
$serviceString = $parts[0];
@@ -55,19 +55,19 @@ public function load($resource, $type = null)
5555
$loaderObject = $this->getServiceObject($serviceString);
5656

5757
if (!\is_object($loaderObject)) {
58-
throw new \LogicException(sprintf('%s:getServiceObject() must return an object: %s returned', static::class, \gettype($loaderObject)));
58+
throw new \LogicException(sprintf('%s:getServiceObject() must return an object: %s returned.', static::class, \gettype($loaderObject)));
5959
}
6060

6161
if (!method_exists($loaderObject, $method)) {
62-
throw new \BadMethodCallException(sprintf('Method "%s" not found on "%s" when importing routing resource "%s"', $method, \get_class($loaderObject), $resource));
62+
throw new \BadMethodCallException(sprintf('Method "%s" not found on "%s" when importing routing resource "%s".', $method, \get_class($loaderObject), $resource));
6363
}
6464

6565
$routeCollection = \call_user_func([$loaderObject, $method], $this);
6666

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

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

7373
// make the service file tracked so that if it changes, the cache rebuilds

0 commit comments

Comments
 (0)