Skip to content

Commit

Permalink
[#3729] Removing 3rd argument to isWritable - this doesn't exist in t…
Browse files Browse the repository at this point in the history
…he final merged item
  • Loading branch information
weaverryan committed Apr 12, 2014
1 parent 319bf29 commit fb9fe99
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/property_access/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,11 @@ instead::
The same is possible for :method:`PropertyAccessor::setValue<Symfony\\Component\\PropertyAccess\\PropertyAccessor::setValue>`:
Call the
:method:`PropertyAccessor::isWritable<Symfony\\Component\\PropertyAccess\\PropertyAccessor::isWritable>`
method to find out whether a property path can be updated. In the third
argument, you should pass the value that you want to write::
method to find out whether a property path can be updated::

$person = new Person();

if ($accessor->isWritable($person, 'firstName', 'Wouter') {
if ($accessor->isWritable($person, 'firstName') {
// ...
}

Expand Down

0 comments on commit fb9fe99

Please sign in to comment.