Commit f7c9a76
committed
minor #21618 [Security] Fix incorrect checkPostAuth() signature in UserChecker documentation (lacatoire)
This PR was merged into the 7.3 branch.
Discussion
----------
[Security] Fix incorrect checkPostAuth() signature in UserChecker documentation
The documentation for `UserChecker::checkPostAuth()` currently shows the following signature:
`public function checkPostAuth(UserInterface $user, TokenInterface $token): void`
This is incorrect for Symfony 7.3, where the $token argument is:
- nullable
- optional
and handled internally via func_get_arg() for backward compatibility
The correct signature for 7.3 should be:
`public function checkPostAuth(UserInterface $user, ?TokenInterface $token = null): void`
Commits
-------
ff2b5c8 Fix UserChecker doc: make $token nullable and optional in checkPostAuth()1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments