Skip to content

Commit fe94cfb

Browse files
minor #60245 [Security] Add callable type to CustomCredentials (BenMorel)
This PR was merged into the 7.3 branch. Discussion ---------- [Security] Add callable type to CustomCredentials | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | / | License | MIT Commits ------- 46b0b53 Add callable type to CustomCredentials
2 parents fab90e3 + 46b0b53 commit fe94cfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Security/Http/Authenticator/Passport/Credentials/CustomCredentials.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class CustomCredentials implements CredentialsInterface
2727
private bool $resolved = false;
2828

2929
/**
30-
* @param callable $customCredentialsChecker the check function. If this function does not return `true`, a
31-
* BadCredentialsException is thrown. You may also throw a more
32-
* specific exception in the function.
30+
* @param callable(mixed, UserInterface) $customCredentialsChecker If the callable does not return `true`, a
31+
* BadCredentialsException is thrown. You may
32+
* also throw a more specific exception.
3333
*/
3434
public function __construct(
3535
callable $customCredentialsChecker,

0 commit comments

Comments
 (0)