Skip to content

Commit 7a14736

Browse files
[DependencyInjection] Fix loading all env vars from secrets when only a subset is needed
1 parent 6901a54 commit 7a14736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LazyString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function fromCallable(callable|array $callback, mixed ...$argument
3939
$callback[1] ??= '__invoke';
4040
}
4141
$value = $callback(...$arguments);
42-
$callback = self::getPrettyName($callback);
42+
$callback = !\is_scalar($value) && !$value instanceof \Stringable ? self::getPrettyName($callback) : 'callable';
4343
$arguments = null;
4444
}
4545

0 commit comments

Comments
 (0)