Skip to content

Commit d6b4795

Browse files
committed
Add missing brackets to PropertyAccessor examples
1 parent 58c0baf commit d6b4795

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)