From 91eb804097fb09ca69ec4be0ccdac65c2be0e0df Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 13 Dec 2019 11:03:54 +0100 Subject: [PATCH] Tweaked the PropertyAccess doc --- components/property_access.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/property_access.rst b/components/property_access.rst index c368d3581ac..d1732b29893 100644 --- a/components/property_access.rst +++ b/components/property_access.rst @@ -158,13 +158,13 @@ getters, this means that you can do something like this:: $person = new Person(); if ($propertyAccessor->getValue($person, 'author')) { - var_dump('He is an author'); + var_dump('This person is an author'); } if ($propertyAccessor->getValue($person, 'children')) { - var_dump('He has children'); + var_dump('This person has children'); } -This will produce: ``He is an author`` +This will produce: ``This person is an author`` Magic ``__get()`` Method ~~~~~~~~~~~~~~~~~~~~~~~~