Skip to content

Commit d335005

Browse files
committed
[Serializer] Fix CS
1 parent 0442752 commit d335005

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/serializer.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Converting Property Names when Serializing and Deserializing
170170
interface was introduced in Symfony 2.7.
171171

172172
Sometimes serialized attributes must be named differently than properties
173-
or getter / setter methods of PHP classes.
173+
or getter/setter methods of PHP classes.
174174

175175
The Serializer Component provides a handy way to translate or map PHP field
176176
names to serialized names: The Name Converter System.
@@ -183,13 +183,12 @@ Given you have the following object::
183183
public address;
184184
}
185185

186-
187186
And in the serialized form, all attributes must be prefixed by ``org_`` like
188187
the following::
189188

190189
{"org_name": "Acme Inc.", "org_address": "123 Main Street, Big City"}
191190

192-
A custom Name Converter can handle such cases::
191+
A custom name converter can handle such cases::
193192

194193
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
195194

0 commit comments

Comments
 (0)