Skip to content

Commit 12d77c2

Browse files
authored
Merge pull request #1800 from kohlerdominik/patch-1
Don't hide ftp_connect error behind ftp_close error
2 parents 60ce12e + 06b55a8 commit 12d77c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ftp/FtpConnectionProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function createConnection(FtpConnectionOptions $options)
3030
$this->ignorePassiveAddress($options, $connection);
3131
$this->makeConnectionPassive($options, $connection);
3232
} catch (FtpConnectionException $exception) {
33-
ftp_close($connection);
33+
@ftp_close($connection);
3434
throw $exception;
3535
}
3636

0 commit comments

Comments
 (0)