Skip to content

Commit 49eed73

Browse files
committed
Fix BC-class
1 parent 6db492d commit 49eed73

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

lib/Auth/LDAP.php

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,26 @@
1010
if (class_exists('Ldap') && !class_exists('LDAP')) {
1111
class LDAP extends \SimpleSAML\Module\ldap\Auth\Ldap
1212
{
13-
public function __construct()
14-
{
15-
parent::__construct();
13+
/**
14+
* Private constructor restricts instantiation to getInstance().
15+
*
16+
* @param string $hostname
17+
* @param bool $enable_tls
18+
* @param bool $debug
19+
* @param int $timeout
20+
* @param int $port
21+
* @param bool $referrals
22+
* @psalm-suppress NullArgument
23+
*/
24+
public function __construct(
25+
$hostname,
26+
$enable_tls = true,
27+
$debug = false,
28+
$timeout = 0,
29+
$port = 389,
30+
$referrals = true
31+
) {
32+
parent::__construct($hostname, $enable_tls, $debug, $timeout, $port, $referrals);
1633
}
1734
}
1835
} else {

0 commit comments

Comments
 (0)