Skip to content

Commit

Permalink
Merge pull request #1800 from kohlerdominik/patch-1
Browse files Browse the repository at this point in the history
Don't hide ftp_connect error behind ftp_close error
  • Loading branch information
frankdejonge authored Jul 3, 2024
2 parents 60ce12e + 06b55a8 commit 12d77c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ftp/FtpConnectionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function createConnection(FtpConnectionOptions $options)
$this->ignorePassiveAddress($options, $connection);
$this->makeConnectionPassive($options, $connection);
} catch (FtpConnectionException $exception) {
ftp_close($connection);
@ftp_close($connection);
throw $exception;
}

Expand Down

0 comments on commit 12d77c2

Please sign in to comment.