From a8abc70bcbcbb3f7f84ff2d0b0d0b6d87151fde0 Mon Sep 17 00:00:00 2001 From: Dj Padzensky Date: Mon, 7 Mar 2016 15:05:06 -0800 Subject: Changing new self to new static, to accommodate subclasses of LdapClient. --- app/Core/Ldap/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/Core/Ldap/Client.php b/app/Core/Ldap/Client.php index e35e4ea0..05658190 100644 --- a/app/Core/Ldap/Client.php +++ b/app/Core/Ldap/Client.php @@ -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(); -- cgit v1.2.3