Skip to content

Commit 5bf3685

Browse files
committed
Rename PROTOCOL_SSL to PROTOCOL_TLS and PORT_SSL to PORT_TLS
1 parent 231b6c3 commit 5bf3685

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/HandlesConnection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function getProtocol(): string
148148
{
149149
return $this->protocol ?: (
150150
$this->isUsingTLS()
151-
? LdapInterface::PROTOCOL_SSL
151+
? LdapInterface::PROTOCOL_TLS
152152
: LdapInterface::PROTOCOL
153153
);
154154
}
@@ -234,7 +234,7 @@ protected function makeConnectionUris(array|string $hosts, string|int $port): st
234234
// and we are still using the default port, we will swap it
235235
// for the default TLS port, for developer convenience.
236236
if ($this->isUsingTLS() && $port == LdapInterface::PORT) {
237-
$port = LdapInterface::PORT_SSL;
237+
$port = LdapInterface::PORT_TLS;
238238
}
239239

240240
// The blank space here is intentional. PHP's LDAP extension

src/LdapInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ interface LdapInterface
1919
public const PROTOCOL = 'ldap://';
2020

2121
/**
22-
* The SSL LDAP protocol string.
22+
* The TLS LDAP protocol string.
2323
*
2424
* @var string
2525
*/
26-
public const PROTOCOL_SSL = 'ldaps://';
26+
public const PROTOCOL_TLS = 'ldaps://';
2727

2828
/**
2929
* The standard LDAP port number.
@@ -37,7 +37,7 @@ interface LdapInterface
3737
*
3838
* @var int
3939
*/
40-
public const PORT_SSL = 636;
40+
public const PORT_TLS = 636;
4141

4242
/**
4343
* Print entry and exit from routines.

0 commit comments

Comments
 (0)