Skip to content

Commit 705eb96

Browse files
Lenard Palkofabpot
Lenard Palko
authored andcommitted
Added deprecation log for PropertyAccess::getPropertyAccessor. Issue #12...
1 parent d277c16 commit 705eb96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/PropertyAccess/PropertyAccess.php

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public static function createPropertyAccessorBuilder()
4848
*/
4949
public static function getPropertyAccessor()
5050
{
51+
trigger_error('PropertyAccess::getPropertyAccessor() is deprecated since version 2.3 and will be removed in 3.0. Use PropertyAccess::createPropertyAccessor() instead.', E_USER_DEPRECATED);
52+
5153
return self::createPropertyAccessor();
5254
}
5355

0 commit comments

Comments
 (0)