From 705eb961d59c82a5ce80f5753b3508e56386020f Mon Sep 17 00:00:00 2001 From: Lenard Palko Date: Sat, 29 Nov 2014 12:06:00 +0100 Subject: [PATCH] Added deprecation log for PropertyAccess::getPropertyAccessor. Issue #12... --- src/Symfony/Component/PropertyAccess/PropertyAccess.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccess.php b/src/Symfony/Component/PropertyAccess/PropertyAccess.php index 3b234df9d275..b60ca82d6a02 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccess.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccess.php @@ -48,6 +48,8 @@ public static function createPropertyAccessorBuilder() */ public static function getPropertyAccessor() { + trigger_error('PropertyAccess::getPropertyAccessor() is deprecated since version 2.3 and will be removed in 3.0. Use PropertyAccess::createPropertyAccessor() instead.', E_USER_DEPRECATED); + return self::createPropertyAccessor(); }