summaryrefslogtreecommitdiff
path: root/ext/odbc
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/odbc
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/odbc')
-rw-r--r--ext/odbc/tests/odbc_data_source_001.phpt2
-rw-r--r--ext/odbc/tests/odbc_exec_001.phpt4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/odbc/tests/odbc_data_source_001.phpt b/ext/odbc/tests/odbc_data_source_001.phpt
index 6900f13205..8f5767315a 100644
--- a/ext/odbc/tests/odbc_data_source_001.phpt
+++ b/ext/odbc/tests/odbc_data_source_001.phpt
@@ -23,7 +23,7 @@ var_dump(odbc_data_source($conn, SQL_FETCH_FIRST));
Warning: odbc_data_source(): Invalid fetch type (0) in %s on line %d
bool(false)
-Warning: odbc_data_source() expects parameter 2 to be integer, string given in %s on line %d
+Warning: odbc_data_source() expects parameter 2 to be int, string given in %s on line %d
NULL
array(%d) {
%a
diff --git a/ext/odbc/tests/odbc_exec_001.phpt b/ext/odbc/tests/odbc_exec_001.phpt
index dfdddf88c0..cfb13876a2 100644
--- a/ext/odbc/tests/odbc_exec_001.phpt
+++ b/ext/odbc/tests/odbc_exec_001.phpt
@@ -28,11 +28,11 @@ odbc_exec($conn, NULL);
?>
--EXPECTF--
-Warning: odbc_exec() expects parameter 3 to be integer, string given in %s on line %d
+Warning: odbc_exec() expects parameter 3 to be int, string given in %s on line %d
Warning: odbc_exec(): SQL error: %s in %s on line %d
-Warning: odbc_exec() expects parameter 3 to be integer, string given in %s on line %d
+Warning: odbc_exec() expects parameter 3 to be int, string given in %s on line %d
Warning: odbc_exec(): SQL error: %s in %s on line %d