Skip to content

Commit fc6d6c9

Browse files
author
Robin Chalas
committed
minor #32942 [Ldap] Fix LdapUserProvider signatures (chalasr)
This PR was merged into the 5.0-dev branch. Discussion ---------- [Ldap] Fix LdapUserProvider signatures | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 920a52d [Ldap] Fix signature compat
2 parents 6497ec3 + 920a52d commit fc6d6c9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Symfony/Component/Ldap/Security/LdapUserProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(LdapInterface $ldap, string $baseDn, string $searchD
6363
/**
6464
* {@inheritdoc}
6565
*/
66-
public function loadUserByUsername($username)
66+
public function loadUserByUsername(string $username)
6767
{
6868
try {
6969
$this->ldap->bind($this->searchDn, $this->searchPassword);
@@ -112,7 +112,7 @@ public function refreshUser(UserInterface $user)
112112
/**
113113
* {@inheritdoc}
114114
*/
115-
public function supportsClass($class)
115+
public function supportsClass(string $class)
116116
{
117117
return LdapUser::class === $class;
118118
}

src/Symfony/Component/Ldap/composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
"ext-ldap": "*"
2222
},
2323
"require-dev": {
24-
"symfony/security-core": "^4.4"
24+
"symfony/security-core": "^5.0"
2525
},
2626
"conflict": {
27-
"symfony/options-resolver": "<4.4"
27+
"symfony/options-resolver": "<4.4",
28+
"symfony/security-core": "<5"
2829
},
2930
"autoload": {
3031
"psr-4": { "Symfony\\Component\\Ldap\\": "" },

0 commit comments

Comments
 (0)