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/standard/tests/file/fopen_variation10-win32.phpt | |
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/standard/tests/file/fopen_variation10-win32.phpt')
-rw-r--r-- | ext/standard/tests/file/fopen_variation10-win32.phpt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/tests/file/fopen_variation10-win32.phpt b/ext/standard/tests/file/fopen_variation10-win32.phpt index c949f86fa2..5f38cbba65 100644 --- a/ext/standard/tests/file/fopen_variation10-win32.phpt +++ b/ext/standard/tests/file/fopen_variation10-win32.phpt @@ -98,21 +98,21 @@ file in root Warning: fopen(c\fopen_variation10.tmp): failed to open stream: No such file or directory in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d --\-- Warning: fopen(\\fopen_variation10.tmp): failed to open stream: Invalid argument in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d --/-- Warning: fopen(/\fopen_variation10.tmp): failed to open stream: Invalid argument in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d --c:fopen10.tmpdirTwo-- file in fopen10.tmpdirTwo @@ -122,7 +122,7 @@ file in fopen10.tmpdirTwo Warning: fopen(c:adir\fopen_variation10.tmp): failed to open stream: No such file or directory in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d --c:\/-- file in root @@ -144,6 +144,6 @@ file in fopen10.tmpDir Warning: fopen(/sortout\fopen_variation10.tmp): failed to open stream: No such file or directory in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, boolean given in %s on line %d +Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d ===DONE=== |