diff --git a/src/Web/Documentation/content/1.x/2-features/01-mapper.md b/src/Web/Documentation/content/1.x/2-features/01-mapper.md index 8a0c4a36..035a5709 100644 --- a/src/Web/Documentation/content/1.x/2-features/01-mapper.md +++ b/src/Web/Documentation/content/1.x/2-features/01-mapper.md @@ -173,7 +173,7 @@ use Tempest\Mapper\Caster; final readonly class AddressCaster implements Caster { - public function cast(mixed $input): DateTimeInterface + public function cast(mixed $input): Address { return new Address( street: $input['street'], @@ -235,4 +235,4 @@ $container->get(SerializerFactory::class) ->addSerializer(Address::class, AddressSerializer::class); ``` -If you're looking for the right place where to put this logic, [provider classes](/docs/extra-topics/package-development#provider-classes) is our recommendation. \ No newline at end of file +If you're looking for the right place where to put this logic, [provider classes](/docs/extra-topics/package-development#provider-classes) is our recommendation.