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 b859833 commit b34938fCopy full SHA for b34938f
README.md
@@ -65,7 +65,7 @@ echo $value; // 12
65
Transform values into anything you want. Optionally: pass functions as variables.
66
```php
67
$toGreetingResource = fn(string $item): array => ['text' => $item, 'length' => strlen($item)];
68
-$toJsonStrict = fn(array $item): string => json_encode($item, flags: JSON_THROW_ON_ERROR);
+$toJsonStrict = fn(mixed $item): string => json_encode($item, flags: JSON_THROW_ON_ERROR);
69
70
$value = Box::of('World')
71
->map(fn(string $name): string => "Hello, $name!")
0 commit comments