doc: fix typo in code example

This commit is contained in:
Patrick Landolt 2022-09-30 13:12:12 +02:00 committed by GitHub
parent 212b77fd13
commit 2b9d81cc45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`