Skip to content

Commit fb9fe99

Browse files
committed
[symfony#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

Lines changed: 2 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy