You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \TypeError(sprintf('Argument 1 passed to "%s()" must be a callable or a [Closure, method] lazy-callable, "%s" given.', __METHOD__, \gettype($callback)));
31
+
thrownew \TypeError(sprintf('Argument 1 passed to "%s()" must be a callable or a [Closure, method] lazy-callable, "%s" given.', __METHOD__, get_debug_type($callback)));
32
32
}
33
33
34
34
$lazyString = newstatic();
@@ -57,7 +57,7 @@ public static function fromCallable($callback, ...$arguments): self
57
57
publicstaticfunctionfromStringable($value): self
58
58
{
59
59
if (!self::isStringable($value)) {
60
-
thrownew \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
+
thrownew \TypeError(sprintf('Argument 1 passed to "%s()" must be a scalar or a stringable object, "%s" given.', __METHOD__, get_debug_type($value)));
61
61
}
62
62
63
63
if (\is_object($value)) {
@@ -143,7 +143,7 @@ private static function getPrettyName(callable $callback): string
0 commit comments