Commit 4a9299d
committed
minor symfony#21077 Update custom_normalizer.rst: Fix incorrect variable in normalize() method example (kevinirlen)
This PR was submitted for the 7.3 branch but it was merged into the 7.2 branch instead.
Discussion
----------
Update custom_normalizer.rst: Fix incorrect variable in normalize() method example
The `normalize()` method in the documentation references an `$object` variable that is never defined. This can be confusing for developers trying to follow the example.
This merge request updates the example to use the correct `$data` variable, which holds the original object being normalized.
Commits
-------
5edccbf Update custom_normalizer.rst1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments