Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e96ebd3

Browse files
committed
bug symfony#4522 Add missing brackets to PropertyAccessor examples (loonytoons)
This PR was merged into the 2.5 branch. Discussion ---------- Add missing brackets to PropertyAccessor examples | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.5+ | Fixed tickets | none Commits ------- d6b4795 Add missing brackets to PropertyAccessor examples
2 parents 58c0baf + d6b4795 commit e96ebd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/property_access/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ instead::
327327

328328
$person = new Person();
329329

330-
if ($accessor->isReadable($person, 'firstName') {
330+
if ($accessor->isReadable($person, 'firstName')) {
331331
// ...
332332
}
333333

@@ -338,7 +338,7 @@ method to find out whether a property path can be updated::
338338

339339
$person = new Person();
340340

341-
if ($accessor->isWritable($person, 'firstName') {
341+
if ($accessor->isWritable($person, 'firstName')) {
342342
// ...
343343
}
344344

0 commit comments

Comments
 (0)