summaryrefslogtreecommitdiff
path: root/ext/standard/tests/image
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-02-04 16:42:36 -0200
committerNikita Popov <nikita.ppv@gmail.com>2018-02-04 23:09:40 +0100
commitfef879a2d63899ed25f39b4581c16682afdd0a8f (patch)
treece12aa17bbd2db3d0cfd2cabda46e4bcdb074686 /ext/standard/tests/image
parentce1d69a1f6dcf15d43029301059c25e5bc09a577 (diff)
downloadphp-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/standard/tests/image')
-rw-r--r--ext/standard/tests/image/image_type_to_extension.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/tests/image/image_type_to_extension.phpt b/ext/standard/tests/image/image_type_to_extension.phpt
index 356d4e9a1e..f6551fbc23 100644
--- a/ext/standard/tests/image/image_type_to_extension.phpt
+++ b/ext/standard/tests/image/image_type_to_extension.phpt
@@ -91,7 +91,7 @@ Constant: IMAGETYPE_WEBP
With dot: .webp
Without dot: webp
-Warning: image_type_to_extension() expects parameter 2 to be boolean, array given in %s on line %d
+Warning: image_type_to_extension() expects parameter 2 to be bool, array given in %s on line %d
bool(false)
Warning: image_type_to_extension() expects parameter 1 to be int, object given in %s on line %d