File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -225,14 +225,15 @@ provide whether properties are readable or writable as booleans::
225
225
The :class: `Symfony\\ Component\\ PropertyInfo\\ Extractor\\ ReflectionExtractor ` looks
226
226
for getter/isser/setter/hasser method in addition to whether or not a property is public
227
227
to determine if it's accessible. This based on how the :doc: `PropertyAccess </components/property_access >`
228
- works. It assumes camel case style method names following `PSR-1 `_. Therefore, a property like ``myProperty `` or ``my_property `` is
229
- readable if it has a ``getMyProperty() `` and writable if it has a ``setMyProperty() `` method.
228
+ works. It assumes camel case style method names following `PSR-1 `_. For example,
229
+ both ``myProperty `` and ``my_property `` properties are readable if there's a
230
+ ``getMyProperty() `` method and writable if there's a ``setMyProperty() `` method.
230
231
231
232
.. versionadded :: 6.4
232
233
233
- Camel case style setter methods for properties in snake case (like ``my_property ``) are accepted since Symfony 6.4. Before, the
234
- setter name had to contain the underscores (e.g. `setMy_property () `) to make the property assumed writable.
235
-
234
+ In Symfony versions prior to 6.4, snake case properties (e.g. ``my_property ``)
235
+ were not writable by camel case methods (e.g. `` setMyProperty () ``). You had
236
+ to define method names with underscores (e.g. `` setMy_property() ``).
236
237
237
238
.. _property-info-initializable :
238
239
You can’t perform that action at this time.
0 commit comments