| @@ -571,11 +571,11 @@ | ||
| 571 | 571 | } |
| 572 | 572 | |
| 573 | 573 | private function getRawExecResponseCode($command) |
| 574 | 574 | { |
| 575 | - $response = @ftp_raw($this->connection, trim($command)); | |
| 575 | + $response = @ftp_raw($this->connection, trim($command)) ?: []; | |
| 576 | 576 | |
| 577 | - return (int) preg_replace('/\D/', '', implode(' ', $response)); | |
| 577 | + return (int) preg_replace('/\D/', '', implode(' ', (array) $response)); | |
| 578 | 578 | } |
| 579 | 579 | |
| 580 | 580 | private function hasFtpConnection(): bool |
| 581 | 581 | { |