Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f876e58

Browse files
committed
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 | #20516 (comment) | License | MIT | Doc PR | N/A My bad, it seems I've never pushed the fix for #20516 (comment) :/ Commits ------- 57427cc Fix deprecation message
2 parents 4927993 + 57427cc commit f876e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function registerListener($key, $logoutPath, $csrfTokenId, $csrfParameter
5656
if (__CLASS__ !== get_class($this)) {
5757
$r = new \ReflectionMethod($this, __FUNCTION__);
5858
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
59-
@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);
59+
@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);
6060
}
6161
}
6262

0 commit comments

Comments
 (0)