Skip to content

Commit 868db0b

Browse files
minor #33154 Parameter type leftovers (derrabus)
This PR was merged into the 5.0-dev branch. Discussion ---------- Parameter type leftovers | 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 Commits ------- 34eda04866 Added more parameter type declarations.
2 parents c4c11c5 + 75ecc36 commit 868db0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Adapter/ExtLdap/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function execute()
153153
*
154154
* @internal
155155
*/
156-
public function getResource($idx = 0)
156+
public function getResource(int $idx = 0)
157157
{
158158
if (null === $this->results || $idx >= \count($this->results)) {
159159
return null;

Security/LdapUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function supportsClass(string $class)
146146
*
147147
* @return LdapUser
148148
*/
149-
protected function loadUser($username, Entry $entry)
149+
protected function loadUser(string $username, Entry $entry)
150150
{
151151
$password = null;
152152
$extraFields = [];

0 commit comments

Comments
 (0)