Skip to content

Commit 0772a9c

Browse files
committed
Make integration test work again after refactoring
1 parent 28abc5e commit 0772a9c

File tree

5 files changed

+133
-128
lines changed

5 files changed

+133
-128
lines changed

src/main/php/peer/ftp/FtpTransfer.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public function getRemote() {
4747
/**
4848
* Returns the remote file
4949
*
50-
* @param peer.ftp.FtpTransferListener $l
50+
* @param ?peer.ftp.FtpTransferListener $l
5151
* @return self
5252
*/
53-
public function withListener(FtpTransferListener $l= null) {
53+
public function withListener(?FtpTransferListener $l= null) {
5454
$this->listener= $l;
5555
return $this;
5656
}

src/main/php/peer/ftp/server/FtpProtocol.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ public function onRnfr($socket, $params) {
764764
$this->answer($socket, 550, $params.': No such file or directory');
765765
return;
766766
}
767-
$this->cat && $this->cat->debug($entry->toString());
767+
$this->cat && $this->cat->debug($entry);
768768

769769
$this->sessions[$socket->hashCode()]->setTempVar('rnfr', $entry);
770770
$this->answer($socket, 350, 'File or directory exists, ready for destination name.');

0 commit comments

Comments
 (0)