Skip to content

Commit d47995f

Browse files
committed
minor #18783 [Serializer] Use correct property types in example (teklakct)
This PR was merged into the 6.4 branch. Discussion ---------- [Serializer] Use correct property types in example In the [Selecting Specific Attributes](https://symfony.com/doc/current/components/serializer.html#selecting-specific-attributes) section, there is a type mismatch in the example `User` class. Commits ------- 2b29113 [Serializer] Use correct property types in example
2 parents 93aecf4 + 2b29113 commit d47995f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ It is also possible to serialize only a set of specific attributes::
401401
{
402402
public string $familyName;
403403
public string $givenName;
404-
public string $company;
404+
public Company $company;
405405
}
406406

407407
class Company

0 commit comments

Comments
 (0)