fix: Fix small psalm errors in FTP and LDAP connections

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/44658/head
Côme Chilliet 2024-04-08 17:10:08 +07:00 committed by Côme Chilliet
parent d4229f9f59
commit 72a0da6d4e
2 changed files with 2 additions and 6 deletions

@ -50,10 +50,7 @@ class FtpConnection {
}
public function __destruct() {
if ($this->connection) {
ftp_close($this->connection);
}
$this->connection = null;
ftp_close($this->connection);
}
public function setUtf8Mode(): bool {

@ -446,8 +446,7 @@ class Connection extends LDAPUtility {
private function doCriticalValidation(): bool {
$configurationOK = true;
$errorStr = 'Configuration Error (prefix '.
(string)$this->configPrefix .'): ';
$errorStr = 'Configuration Error (prefix ' . $this->configPrefix . '): ';
//options that shall not be empty
$options = ['ldapHost', 'ldapUserDisplayName',