We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
else
1 parent caa82a5 commit 3476f6aCopy full SHA for 3476f6a
Adapter/ExtLdap/Connection.php
@@ -149,10 +149,10 @@ private function connect(): void
149
150
if (false === $connection = ldap_connect($this->config['connection_string'])) {
151
throw new LdapException('Invalid connection string: '.$this->config['connection_string']);
152
- } else {
153
- $this->connection = $connection;
154
}
155
+ $this->connection = $connection;
+
156
foreach ($this->config['options'] as $name => $value) {
157
if (!\in_array(ConnectionOptions::getOption($name), self::PRECONNECT_OPTIONS, true)) {
158
$this->setOption($name, $value);
0 commit comments