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

Commit da5deed

Browse files
authored
Update SyncPassword.php
The config states that `column` should be set to null if there is no password column. Since PHP 7.0 doesn't support nullable return types, we can't type hint the return from this method. Config reference: https://github.com/Adldap2/Adldap2-Laravel/blob/3e118ce82c7fb8d90d7fedfe331c825a5812e904/src/Config/auth.php#L214
1 parent 3e118ce commit da5deed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/SyncPassword.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ protected function syncing() : bool
145145
/**
146146
* Retrieves the password column to use.
147147
*
148-
* @return string
148+
* @return string|null
149149
*/
150-
protected function column() : string
150+
protected function column()
151151
{
152152
return Config::get('adldap_auth.passwords.column', 'password');
153153
}

0 commit comments

Comments
 (0)