Skip to content

Commit fb9fe99

Browse files
committed
[#3729] Removing 3rd argument to isWritable - this doesn't exist in the final merged item
1 parent 319bf29 commit fb9fe99

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/property_access/introduction.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,11 @@ instead::
334334
The same is possible for :method:`PropertyAccessor::setValue<Symfony\\Component\\PropertyAccess\\PropertyAccessor::setValue>`:
335335
Call the
336336
: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::
337+
method to find out whether a property path can be updated::
339338

340339
$person = new Person();
341340

342-
if ($accessor->isWritable($person, 'firstName', 'Wouter') {
341+
if ($accessor->isWritable($person, 'firstName') {
343342
// ...
344343
}
345344

0 commit comments

Comments
 (0)