From ac0c4ceeb378ef84f21e1f8a0a0570f20ac64a39 Mon Sep 17 00:00:00 2001 From: Wouter J Date: Wed, 6 Mar 2013 17:58:18 +0100 Subject: [PATCH] Fixed typo in UPGRADE-2.2 --- UPGRADE-2.2.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UPGRADE-2.2.md b/UPGRADE-2.2.md index e4494eeda8..524a8f7e1d 100644 --- a/UPGRADE-2.2.md +++ b/UPGRADE-2.2.md @@ -202,10 +202,10 @@ ``` use Symfony\Component\PropertyAccess\PropertyAccess; - $accessor = PropertyAccess::getPropertyAccessor(); + $propertyAccessor = PropertyAccess::getPropertyAccessor(); $value = $propertyAccessor->getValue($object, 'some.path'); - $accessor->setValue($object, 'some.path', 'new value'); + $propertyAccessor->setValue($object, 'some.path', 'new value'); ``` After (alternative 2): @@ -214,11 +214,11 @@ use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\PropertyAccess\PropertyPath; - $accessor = PropertyAccess::getPropertyAccessor(); + $propertyAccessor = PropertyAccess::getPropertyAccessor(); $propertyPath = new PropertyPath('some.path'); $value = $propertyAccessor->getValue($object, $propertyPath); - $accessor->setValue($object, $propertyPath, 'new value'); + $propertyAccessor->setValue($object, $propertyPath, 'new value'); ``` ### Routing