Skip to content

Commit 28abc5e

Browse files
committed
Fix optional parameter before required parameter
1 parent 93f8d7e commit 28abc5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class FtpDownload extends FtpTransfer {
1818
* @param peer.ftp.FtpFile $remote
1919
* @param io.streams.OutputStream|io.Channel $target
2020
*/
21-
public function __construct(FtpFile $remote= null, $target) {
21+
public function __construct(FtpFile $remote, $target) {
2222
$this->remote= $remote;
2323
if ($target instanceof OutputStream) {
2424
$this->out= $target;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class FtpUpload extends FtpTransfer {
1919
* @param io.streams.InputStream|io.Channel $source
2020
* @throws lang.IllegalArgumentException
2121
*/
22-
public function __construct(FtpFile $remote= null, $source) {
22+
public function __construct(FtpFile $remote, $source) {
2323
$this->remote= $remote;
2424
if ($source instanceof InputStream) {
2525
$this->in= $source;

0 commit comments

Comments
 (0)