Skip to content

Commit 1dd788a

Browse files
committed
ext/ftp: Change return type of ftp_set_option() to true
It either returns true or throws an Error
1 parent c855964 commit 1dd788a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/ftp/ftp.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function ftp_close(FTP\Connection $ftp): bool {}
132132
function ftp_quit(FTP\Connection $ftp): bool {}
133133

134134
/** @param int|bool $value */
135-
function ftp_set_option(FTP\Connection $ftp, int $option, $value): bool {}
135+
function ftp_set_option(FTP\Connection $ftp, int $option, $value): true {}
136136
function ftp_get_option(FTP\Connection $ftp, int $option): int|bool {}
137137
}
138138

ext/ftp/ftp_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)