Skip to content

Commit 35c0629

Browse files
committed
Reset secure on LDAP close
1 parent cff35dc commit 35c0629

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Ldap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ public function close(): bool
183183
}
184184

185185
$this->bound = false;
186+
$this->secure = false;
187+
186188
$this->host = null;
187189
$this->protocol = null;
188190
$this->connection = null;

src/Testing/LdapFake.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ public function connect(string|array $hosts = [], int $port = 389, ?string $prot
353353
public function close(): bool
354354
{
355355
$this->bound = false;
356+
$this->secure = false;
357+
356358
$this->host = null;
357359
$this->protocol = null;
358360
$this->connection = null;

0 commit comments

Comments
 (0)