Skip to content

Commit b15cd3d

Browse files
[Ldap] Clean ldap_connect() call in LdapTestCase
1 parent adc87ad commit b15cd3d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Symfony/Component/Ldap/Tests/LdapTestCase.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ class LdapTestCase extends TestCase
1717
{
1818
protected function getLdapConfig()
1919
{
20-
if (\PHP_VERSION_ID < 80300) {
21-
$h = @ldap_connect(getenv('LDAP_HOST'), getenv('LDAP_PORT'));
22-
} else {
23-
$h = @ldap_connect('ldap://'.getenv('LDAP_HOST').':'.getenv('LDAP_PORT'));
24-
}
25-
20+
$h = @ldap_connect('ldap://'.getenv('LDAP_HOST').':'.getenv('LDAP_PORT'));
2621
@ldap_set_option($h, \LDAP_OPT_PROTOCOL_VERSION, 3);
2722

2823
if (!$h || !@ldap_bind($h)) {

0 commit comments

Comments
 (0)