diff --git a/components/property_access/introduction.rst b/components/property_access/introduction.rst index 2079e5d4b89..f4d4de5cb23 100644 --- a/components/property_access/introduction.rst +++ b/components/property_access/introduction.rst @@ -45,7 +45,7 @@ method. This is done using the index notation that is used in PHP:: 'first_name' => 'Wouter', ); - echo $accessor->getValue($persons, '[first_name]'); // 'Wouter' + echo $accessor->getValue($person, '[first_name]'); // 'Wouter' echo $accessor->getValue($person, '[age]'); // null As you can see, the method will return ``null`` if the index does not exists.