-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Added type-hints to user providers #32353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security] Added type-hints to user providers #32353
Conversation
@@ -44,7 +44,7 @@ public function __construct(ManagerRegistry $registry, string $classOrAlias, str | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function loadUserByUsername($username) | ||
public function loadUserByUsername(string $username) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 These changes to doctrine-bridge
5 break compatibility with security-core
4.4, thus the bump in composer.json. Can be reverted and re-applied later, if you don't want to bump yet.
@@ -140,11 +137,8 @@ protected function loadUser($username, Entry $entry) | ||
|
||
/** | ||
* Fetches a required unique attribute value from an LDAP entry. | ||
* | ||
* @param Entry|null $entry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This @param
annotation was obviously lying to us. 🤔
Thank you @derrabus. |
This PR was merged into the 5.0-dev branch. Discussion ---------- [Security] Added type-hints to user providers | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32179 | License | MIT | Doc PR | N/A This PR adds type declarations to user provider classes. Commits ------- 62abb70 [Security] Added type-hints to user providers.
This PR adds type declarations to user provider classes.