Skip to content

Commit f2ae42b

Browse files
More short closures + isset instead of null checks + etc.
1 parent c937fd5 commit f2ae42b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Adapter/ExtLdap/Query.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public function __wakeup()
4646
public function __destruct()
4747
{
4848
$con = $this->connection->getResource();
49-
$this->connection = null;
5049

5150
if (!isset($this->results)) {
5251
return;
@@ -60,7 +59,6 @@ public function __destruct()
6059
throw new LdapException('Could not free results: '.ldap_error($con));
6160
}
6261
}
63-
unset($this->results);
6462
}
6563

6664
public function execute(): CollectionInterface

0 commit comments

Comments
 (0)