Skip to content

Commit 2a6f9c8

Browse files
authored
fix MapTo import code example
1 parent 174044c commit 2a6f9c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/2-features/01-mapper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ $book = map(['book_title' => 'Timeline Taxi'])->to(Book::class);
9494
Similarly, you can use the {b`#[Tempest\Mapper\MapTo]`} attribute to specify the key that will be used when serializing the object to an array or a JSON string.
9595

9696
```php
97-
use Tempest\Mapper\MapFrom;
97+
use Tempest\Mapper\MapTo;
9898

9999
final class Book
100100
{

0 commit comments

Comments
 (0)