Skip to content

Commit 4e24d03

Browse files
committed
Fix quotes in exception messages
1 parent c94bdc9 commit 4e24d03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LazyString.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class LazyString implements \Stringable, \JsonSerializable
2828
public static function fromCallable($callback, ...$arguments): self
2929
{
3030
if (!\is_callable($callback) && !(\is_array($callback) && isset($callback[0]) && $callback[0] instanceof \Closure && 2 >= \count($callback))) {
31-
throw new \TypeError(sprintf('Argument 1 passed to %s() must be a callable or a [Closure, method] lazy-callable, %s given.', __METHOD__, \gettype($callback)));
31+
throw new \TypeError(sprintf('Argument 1 passed to "%s()" must be a callable or a [Closure, method] lazy-callable, "%s" given.', __METHOD__, \gettype($callback)));
3232
}
3333

3434
$lazyString = new static();
@@ -57,7 +57,7 @@ public static function fromCallable($callback, ...$arguments): self
5757
public static function fromStringable($value): self
5858
{
5959
if (!self::isStringable($value)) {
60-
throw new \TypeError(sprintf('Argument 1 passed to %s() must be a scalar or a stringable object, %s given.', __METHOD__, \is_object($value) ? \get_class($value) : \gettype($value)));
60+
throw new \TypeError(sprintf('Argument 1 passed to "%s()" must be a scalar or a stringable object, "%s" given.', __METHOD__, \is_object($value) ? \get_class($value) : \gettype($value)));
6161
}
6262

6363
if (\is_object($value)) {

0 commit comments

Comments
 (0)