Skip to content

Commit bd92312

Browse files
committed
Fix quotes in exception messages
1 parent a5aaadb commit bd92312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Loader/ObjectLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ 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])) {
@@ -69,7 +69,7 @@ public function load($resource, $type = null)
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)