Skip to content

Commit

Permalink
Added deprecation log for PropertyAccess::getPropertyAccessor. Issue #12
Browse files Browse the repository at this point in the history
...
  • Loading branch information
Lenard Palko authored and fabpot committed Nov 29, 2014
1 parent d277c16 commit 705eb96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Symfony/Component/PropertyAccess/PropertyAccess.php
Expand Up @@ -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();
}

Expand Down

0 comments on commit 705eb96

Please sign in to comment.