From c572e726a2bdbc3bd85328cca15015878682f666 Mon Sep 17 00:00:00 2001 From: Lenard Palko Date: Sat, 29 Nov 2014 12:06:00 +0100 Subject: [PATCH 1/2] Added deprecation log for PropertyAccess::getPropertyAccessor. Issue #12636. --- 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 3b234df9d2753..70428012da181 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('getPropertyAccessor() is deprecated since version 2.3 and will be removed in 3.0. Use createPropertyAccessor() instead.', E_USER_DEPRECATED); + return self::createPropertyAccessor(); } From 598d015f6e8442d3460c0a67d3038ca860f3215c Mon Sep 17 00:00:00 2001 From: Lenard Palko Date: Sat, 29 Nov 2014 14:39:14 +0100 Subject: [PATCH 2/2] Added class prefix. --- src/Symfony/Component/PropertyAccess/PropertyAccess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccess.php b/src/Symfony/Component/PropertyAccess/PropertyAccess.php index 70428012da181..b60ca82d6a02c 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccess.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccess.php @@ -48,7 +48,7 @@ public static function createPropertyAccessorBuilder() */ public static function getPropertyAccessor() { - trigger_error('getPropertyAccessor() is deprecated since version 2.3 and will be removed in 3.0. Use createPropertyAccessor() instead.', E_USER_DEPRECATED); + 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(); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy