diff options
| author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-02-04 11:33:49 -0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-02-04 19:08:23 +0100 |
| commit | ce1d69a1f6dcf15d43029301059c25e5bc09a577 (patch) | |
| tree | 3df785771b4bfa07a9e270b04750840ed47f1cbf /ext/xml/tests/xml_parser_get_option_variation1.phpt | |
| parent | 4861730a945908208a049b0c037ddf4a339f999a (diff) | |
| download | php-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/xml/tests/xml_parser_get_option_variation1.phpt')
| -rw-r--r-- | ext/xml/tests/xml_parser_get_option_variation1.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/xml/tests/xml_parser_get_option_variation1.phpt b/ext/xml/tests/xml_parser_get_option_variation1.phpt index 002bff6cd8..c94f87f420 100644 --- a/ext/xml/tests/xml_parser_get_option_variation1.phpt +++ b/ext/xml/tests/xml_parser_get_option_variation1.phpt @@ -100,22 +100,22 @@ echo "Done"; Arg value 0 -Warning: xml_parser_get_option() expects parameter 1 to be resource, integer given in %s on line %d +Warning: xml_parser_get_option() expects parameter 1 to be resource, int given in %s on line %d NULL Arg value 1 -Warning: xml_parser_get_option() expects parameter 1 to be resource, integer given in %s on line %d +Warning: xml_parser_get_option() expects parameter 1 to be resource, int given in %s on line %d NULL Arg value 12345 -Warning: xml_parser_get_option() expects parameter 1 to be resource, integer given in %s on line %d +Warning: xml_parser_get_option() expects parameter 1 to be resource, int given in %s on line %d NULL Arg value -2345 -Warning: xml_parser_get_option() expects parameter 1 to be resource, integer given in %s on line %d +Warning: xml_parser_get_option() expects parameter 1 to be resource, int given in %s on line %d NULL Arg value 10.5 |
