diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-02-04 16:42:36 -0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-02-04 23:09:40 +0100 |
commit | fef879a2d63899ed25f39b4581c16682afdd0a8f (patch) | |
tree | ce12aa17bbd2db3d0cfd2cabda46e4bcdb074686 /ext/zlib | |
parent | ce1d69a1f6dcf15d43029301059c25e5bc09a577 (diff) | |
download | php-git-fef879a2d63899ed25f39b4581c16682afdd0a8f.tar.gz |
Use bool instead of boolean while throwing a type error
PHP requires boolean typehints to be written "bool" and disallows
"boolean" as an alias. This changes the error messages to match
the actual type name and avoids confusing messages like "must be
of type boolean, boolean given".
This a followup to ce1d69a1f6dcf15d43029301059c25e5bc09a577, which
implements the same change for integer->int.
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/tests/gzopen_variation4.phpt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/zlib/tests/gzopen_variation4.phpt b/ext/zlib/tests/gzopen_variation4.phpt index f829acf063..e4cdce4731 100644 --- a/ext/zlib/tests/gzopen_variation4.phpt +++ b/ext/zlib/tests/gzopen_variation4.phpt @@ -118,37 +118,37 @@ This is a file in script dir Warning: gzopen(): cannot open a zlib stream for reading and writing at the same time! in %s on line %d -Warning: gzpassthru() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: gzpassthru() expects parameter 1 to be resource, bool given in %s on line %d -Warning: gzclose() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: gzclose() expects parameter 1 to be resource, bool given in %s on line %d Warning: gzopen(): cannot open a zlib stream for reading and writing at the same time! in %s on line %d -Warning: gzpassthru() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: gzpassthru() expects parameter 1 to be resource, bool given in %s on line %d -Warning: gzclose() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: gzclose() expects parameter 1 to be resource, bool given in %s on line %d Warning: gzopen(): cannot open a zlib stream for reading and writing at the same time! in %s on line %d -Warning: gzpassthru() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: gzpassthru() expects parameter 1 to be resource, bool given in %s on line %d -Warning: gzclose() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: gzclose() expects parameter 1 to be resource, bool given in %s on line %d Warning: gzopen(): cannot open a zlib stream for reading and writing at the same time! in %s on line %d -Warning: gzpassthru() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: gzpassthru() expects parameter 1 to be resource, bool given in %s on line %d -Warning: gzclose() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: gzclose() expects parameter 1 to be resource, bool given in %s on line %d Warning: gzopen(): cannot open a zlib stream for reading and writing at the same time! in %s on line %d -Warning: gzpassthru() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: gzpassthru() expects parameter 1 to be resource, bool given in %s on line %d -Warning: gzclose() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: gzclose() expects parameter 1 to be resource, bool given in %s on line %d ** testing with mode=rt ** |