summaryrefslogtreecommitdiff
path: root/ext/ftp/tests
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-02-04 11:33:49 -0200
committerNikita Popov <nikita.ppv@gmail.com>2018-02-04 19:08:23 +0100
commitce1d69a1f6dcf15d43029301059c25e5bc09a577 (patch)
tree3df785771b4bfa07a9e270b04750840ed47f1cbf /ext/ftp/tests
parent4861730a945908208a049b0c037ddf4a339f999a (diff)
downloadphp-git-ce1d69a1f6dcf15d43029301059c25e5bc09a577.tar.gz
Use int instead of integer in type errors
PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
Diffstat (limited to 'ext/ftp/tests')
-rw-r--r--ext/ftp/tests/004.phpt2
-rw-r--r--ext/ftp/tests/ftp_ssl_connect_error.phpt4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/ftp/tests/004.phpt b/ext/ftp/tests/004.phpt
index 21b8aabbeb..3fcf272e3b 100644
--- a/ext/ftp/tests/004.phpt
+++ b/ext/ftp/tests/004.phpt
@@ -37,7 +37,7 @@ var_dump(ftp_quit($ftp));
bool(true)
string(4) "UNIX"
-Warning: ftp_alloc() expects parameter 2 to be integer, array given in %s004.php on line 12
+Warning: ftp_alloc() expects parameter 2 to be int, array given in %s004.php on line 12
bool(false)
Warning: ftp_cdup() expects exactly 1 parameter, 2 given in %s004.php on line 13
diff --git a/ext/ftp/tests/ftp_ssl_connect_error.phpt b/ext/ftp/tests/ftp_ssl_connect_error.phpt
index 6deec03e5e..f139696c7f 100644
--- a/ext/ftp/tests/ftp_ssl_connect_error.phpt
+++ b/ext/ftp/tests/ftp_ssl_connect_error.phpt
@@ -37,9 +37,9 @@ bool(false)
Warning: ftp_ssl_connect() expects parameter 1 to be string, array given in %s on line %d
-Warning: ftp_ssl_connect() expects parameter 2 to be integer, array given in %s on line %d
+Warning: ftp_ssl_connect() expects parameter 2 to be int, array given in %s on line %d
-Warning: ftp_ssl_connect() expects parameter 3 to be integer, array given in %s on line %d
+Warning: ftp_ssl_connect() expects parameter 3 to be int, array given in %s on line %d
-- Testing ftp_ssl_connect() function with more than expected no. of arguments --