File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -225,9 +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
228
+ works. It assumes camel case style method names following `PSR-1 `_. Therefore, a property like ``myProperty `` or ``my_property `` is
229
229
readable if it has a ``getMyProperty() `` and writable if it has a ``setMyProperty() `` method.
230
230
231
+ .. versionadded :: 6.4
232
+
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
+
236
+
231
237
.. _property-info-initializable :
232
238
233
239
Property Initializable Information
You can’t perform that action at this time.
0 commit comments