Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fb9fe99

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

‎components/property_access/introduction.rst

Copy file name to clipboardExpand all lines: components/property_access/introduction.rst
+2-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.