Changing new self to new static, to accommodate subclasses of LdapClient.
This commit is contained in:
parent
65ded5a49e
commit
a8abc70bcb
|
|
@ -31,7 +31,7 @@ class Client
|
|||
*/
|
||||
public static function connect($username = null, $password = null)
|
||||
{
|
||||
$client = new self;
|
||||
$client = new static;
|
||||
$client->open($client->getLdapServer());
|
||||
$username = $username ?: $client->getLdapUsername();
|
||||
$password = $password ?: $client->getLdapPassword();
|
||||
|
|
|
|||
Loading…
Reference in New Issue