From d6b4795ee4607771f6da68021bca5ccea3b12c22 Mon Sep 17 00:00:00 2001 From: Alex Luneburg Date: Fri, 28 Nov 2014 20:04:10 +1100 Subject: [PATCH] Add missing brackets to PropertyAccessor examples --- components/property_access/introduction.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/property_access/introduction.rst b/components/property_access/introduction.rst index 55bbda909c3..14a42a1aeeb 100644 --- a/components/property_access/introduction.rst +++ b/components/property_access/introduction.rst @@ -327,7 +327,7 @@ instead:: $person = new Person(); - if ($accessor->isReadable($person, 'firstName') { + if ($accessor->isReadable($person, 'firstName')) { // ... } @@ -338,7 +338,7 @@ method to find out whether a property path can be updated:: $person = new Person(); - if ($accessor->isWritable($person, 'firstName') { + if ($accessor->isWritable($person, 'firstName')) { // ... }