We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b4304d commit 951c0c8Copy full SHA for 951c0c8
LazyString.php
@@ -50,7 +50,7 @@ public static function fromCallable(callable|array $callback, mixed ...$argument
50
public static function fromStringable(string|int|float|bool|\Stringable $value): static
51
{
52
if (\is_object($value)) {
53
- return static::fromCallable([$value, '__toString']);
+ return static::fromCallable($value->__toString(...));
54
}
55
56
$lazyString = new static();
0 commit comments