Skip to content

Commit 06b55a8

Browse files
Don't hide ftp_connect error behind ftp_close error
1 parent 60ce12e commit 06b55a8

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)