diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-05-25 19:28:15 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-05-26 19:06:19 +0200 |
commit | fbe30592d6bec94463c68b27eabffca3a50c474e (patch) | |
tree | 5f7e2ca5bb754504eb0e4f7a49609088832172aa /ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt | |
parent | 38c85efe83004d98b7cce89689b40de32f8b8add (diff) | |
download | php-git-fbe30592d6bec94463c68b27eabffca3a50c474e.tar.gz |
Improve type error messages when an object is given
From now on, we always display the given object's type instead of just reporting "object".
Additionally, make the format of return type errors match the format of argument errors.
Closes GH-5625
Diffstat (limited to 'ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt')
-rw-r--r-- | ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt b/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt index 12e632514e..ab9b430d2a 100644 --- a/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt +++ b/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt @@ -12,4 +12,4 @@ try { ?> --EXPECT-- -Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, object given +Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, SplFixedArray given |