mirror of
https://github.com/danog/Valinor.git
synced 2024-11-30 04:39:05 +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
|
```php
|
||||||
(new \CuyZ\Valinor\MapperBuilder())
|
(new \CuyZ\Valinor\MapperBuilder())
|
||||||
->flexible()
|
->flexible()
|
||||||
->mapper();
|
->mapper()
|
||||||
->map('array{foo: int, bar: bool}', [
|
->map('array{foo: int, bar: bool}', [
|
||||||
'foo' => '42', // The value will be cast from `string` to `int`
|
'foo' => '42', // The value will be cast from `string` to `int`
|
||||||
'bar' => 'true', // The value will be cast from `string` to `bool`
|
'bar' => 'true', // The value will be cast from `string` to `bool`
|
||||||
|
Loading…
Reference in New Issue
Block a user