diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-29 20:06:13 +0100 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-02-17 14:22:17 +0100 |
| commit | ac0853eb265784c4238af652de9c54c883ffa99f (patch) | |
| tree | e9316872480304e9e74ce89bd15052965cc18438 /ext/libxml | |
| parent | 72bd55902d1908857f47555ad69458861e1acd94 (diff) | |
| download | php-git-ac0853eb265784c4238af652de9c54c883ffa99f.tar.gz | |
Make type error messages more consistent
Closes GH-5092
Diffstat (limited to 'ext/libxml')
| -rw-r--r-- | ext/libxml/tests/004.phpt | 12 | ||||
| -rw-r--r-- | ext/libxml/tests/bug63389.phpt | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ext/libxml/tests/004.phpt b/ext/libxml/tests/004.phpt index e3daa41d24..ad05ca1b9f 100644 --- a/ext/libxml/tests/004.phpt +++ b/ext/libxml/tests/004.phpt @@ -27,16 +27,16 @@ foreach ($ctxs as $ctx) { echo "Done\n"; ?> ---EXPECTF-- -libxml_set_streams_context() expects parameter 1 to be resource, null given +--EXPECT-- +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, null given bool(true) -libxml_set_streams_context() expects parameter 1 to be resource, string given +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, string given bool(true) -libxml_set_streams_context() expects parameter 1 to be resource, int given +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, int given bool(true) -libxml_set_streams_context() expects parameter 1 to be resource, object given +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, object given bool(true) -libxml_set_streams_context() expects parameter 1 to be resource, array given +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, array given bool(true) NULL bool(true) diff --git a/ext/libxml/tests/bug63389.phpt b/ext/libxml/tests/bug63389.phpt index 92c3e83567..12b3a032a5 100644 --- a/ext/libxml/tests/bug63389.phpt +++ b/ext/libxml/tests/bug63389.phpt @@ -14,5 +14,5 @@ try { echo "okey"; ?> --EXPECT-- -libxml_set_streams_context() expects parameter 1 to be resource, string given +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, string given okey |
