Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 292aef3

Browse files
committed
More return type declarations
1 parent cc69d8b commit 292aef3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/Commands/Console/Import.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,12 @@ public function isRestoring() : bool
177177
* Retrieves users to be imported.
178178
*
179179
* @return array
180+
*
181+
* @throws \Adldap\Models\ModelNotFoundException
180182
*/
181183
public function getUsers() : array
182184
{
185+
/** @var \Adldap\Query\Builder $query */
183186
$query = Resolver::query();
184187

185188
if ($filter = $this->option('filter')) {

src/Resolvers/ResolverInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function query() : Builder;
7474
*
7575
* @return string
7676
*/
77-
public function getLdapDiscoveryAttribute();
77+
public function getLdapDiscoveryAttribute() : string;
7878

7979
/**
8080
* Retrieves the configured LDAP users authenticatable username attribute.

src/Resolvers/UserResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function query() : Builder
143143
/**
144144
* {@inheritdoc}
145145
*/
146-
public function getLdapDiscoveryAttribute()
146+
public function getLdapDiscoveryAttribute() : string
147147
{
148148
return Config::get('adldap_auth.usernames.ldap.discover', 'userprincipalname');
149149
}

0 commit comments

Comments
 (0)