8000 minor #12661 Added deprecation log for PropertyAccess::getPropertyAcc… · symfony/symfony@95b117c · GitHub
[go: up one dir, main page]

Skip to content

Commit 95b117c

Browse files
committed
minor #12661 Added deprecation log for PropertyAccess::getPropertyAccessor. Issue #12... (Lenard Palko)
This PR was squashed before being merged into the 2.7 branch (closes #12661). Discussion ---------- Added deprecation log for PropertyAccess::getPropertyAccessor. Issue #12... | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #12636 | License | MIT | Doc PR | Added deprecation log for PropertyAccess::getPropertyAccessor. Commits ------- 705eb96 Added deprecation log for PropertyAccess::getPropertyAccessor. Issue #12...
2 parents ccb04ad + 705eb96 commit 95b117c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/PropertyAccess/PropertyAccess.php

Lines changed: 2 additions & 0 deletions
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)
0