mirror of
https://github.com/danog/Valinor.git
synced 2024-11-26 20:24:40 +01:00
doc: fix typo in code example
This commit is contained in:
parent
212b77fd13
commit
2b9d81cc45
@ -21,7 +21,7 @@ disable all strict rules declared above and enable value casting when possible.
|
||||
```php
|
||||
(new \CuyZ\Valinor\MapperBuilder())
|
||||
->flexible()
|
||||
->mapper();
|
||||
->mapper()
|
||||
->map('array{foo: int, bar: bool}', [
|
||||
'foo' => '42', // The value will be cast from `string` to `int`
|
||||
'bar' => 'true', // The value will be cast from `string` to `bool`
|
||||
|
Loading…
Reference in New Issue
Block a user