summaryrefslogtreecommitdiff
path: root/ext/sysvshm
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/sysvshm
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/sysvshm')
-rw-r--r--ext/sysvshm/tests/002.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sysvshm/tests/002.phpt b/ext/sysvshm/tests/002.phpt
index c27782a07f..b28bd0c31a 100644
--- a/ext/sysvshm/tests/002.phpt
+++ b/ext/sysvshm/tests/002.phpt
@@ -54,12 +54,12 @@ bool(false)
Warning: shm_attach(): Segment size must be greater than zero in %s on line %d
bool(false)
-Warning: shm_remove() expects parameter 1 to be resource, boolean given in %s on line %d
+Warning: shm_remove() expects parameter 1 to be resource, bool given in %s on line %d
Warning: shm_attach(): Segment size must be greater than zero in %s on line %d
bool(false)
-Warning: shm_remove() expects parameter 1 to be resource, boolean given in %s on line %d
+Warning: shm_remove() expects parameter 1 to be resource, bool given in %s on line %d
resource(%d) of type (sysvshm)
Warning: shm_remove() expects parameter 1 to be resource, int given in %s on line %d