Skip to content

Commit b34938f

Browse files
committed
cleanup
1 parent b859833 commit b34938f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ echo $value; // 12
6565
Transform values into anything you want. Optionally: pass functions as variables.
6666
```php
6767
$toGreetingResource = fn(string $item): array => ['text' => $item, 'length' => strlen($item)];
68-
$toJsonStrict = fn(array $item): string => json_encode($item, flags: JSON_THROW_ON_ERROR);
68+
$toJsonStrict = fn(mixed $item): string => json_encode($item, flags: JSON_THROW_ON_ERROR);
6969

7070
$value = Box::of('World')
7171
->map(fn(string $name): string => "Hello, $name!")

0 commit comments

Comments
 (0)