minor #22116 Fix deprecation message (ogizanagi)
This PR was merged into the 3.3-dev branch.
Discussion
----------
Fix deprecation message
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | https://github.com/symfony/symfony/pull/20516#discussion_r103876193
| License | MIT
| Doc PR | N/A
My bad, it seems I've never pushed the fix for https://github.com/symfony/symfony/pull/20516#discussion_r103876193 :/
Commits
-------
57427cc01e
Fix deprecation message
This commit is contained in:
commit
f876e58fa6
@ -56,7 +56,7 @@ class LogoutUrlGenerator
|
|||||||
if (__CLASS__ !== get_class($this)) {
|
if (__CLASS__ !== get_class($this)) {
|
||||||
$r = new \ReflectionMethod($this, __FUNCTION__);
|
$r = new \ReflectionMethod($this, __FUNCTION__);
|
||||||
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
|
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
|
||||||
@trigger_error(sprintf('Method %s() will have a sixth `$context = null` argument in version 4.0. Not defining it is deprecated since 3.3.', get_class($this), __FUNCTION__), E_USER_DEPRECATED);
|
@trigger_error(sprintf('Method %s() will have a sixth `$context = null` argument in version 4.0. Not defining it is deprecated since 3.3.', __METHOD__), E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user