We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 319bf29 commit fb9fe99Copy full SHA for fb9fe99
components/property_access/introduction.rst
@@ -334,12 +334,11 @@ instead::
334
The same is possible for :method:`PropertyAccessor::setValue<Symfony\\Component\\PropertyAccess\\PropertyAccessor::setValue>`:
335
Call the
336
:method:`PropertyAccessor::isWritable<Symfony\\Component\\PropertyAccess\\PropertyAccessor::isWritable>`
337
-method to find out whether a property path can be updated. In the third
338
-argument, you should pass the value that you want to write::
+method to find out whether a property path can be updated::
339
340
$person = new Person();
341
342
- if ($accessor->isWritable($person, 'firstName', 'Wouter') {
+ if ($accessor->isWritable($person, 'firstName') {
343
// ...
344
}
345
0 commit comments