Skip to content

Commit 80cfcff

Browse files
committed
minor symfony#6280 Fix syntax of Company class example (cakper)
This PR was submitted for the 3.0 branch but it was merged into the 2.7 branch instead (closes symfony#6280). Discussion ---------- Fix syntax of Company class example Commits ------- 7e621a8 Fix syntax of Company class example
2 parents 6be4c20 + 7e621a8 commit 80cfcff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/serializer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ Given you have the following object::
361361

362362
class Company
363363
{
364-
public name;
365-
public address;
364+
public $name;
365+
public $address;
366366
}
367367

368368
And in the serialized form, all attributes must be prefixed by ``org_`` like

0 commit comments

Comments
 (0)