Skip to content

Commit 58d4112

Browse files
committed
minor symfony#12810 Tweaked the PropertyAccess doc (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Tweaked the PropertyAccess doc Commits ------- 91eb804 Tweaked the PropertyAccess doc
2 parents af58e4d + 91eb804 commit 58d4112

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/property_access.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ getters, this means that you can do something like this::
158158
$person = new Person();
159159

160160
if ($propertyAccessor->getValue($person, 'author')) {
161-
var_dump('He is an author');
161+
var_dump('This person is an author');
162162
}
163163
if ($propertyAccessor->getValue($person, 'children')) {
164-
var_dump('He has children');
164+
var_dump('This person has children');
165165
}
166166

167-
This will produce: ``He is an author``
167+
This will produce: ``This person is an author``
168168

169169
Magic ``__get()`` Method
170170
~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)