diff options
author | Nikita Popov <nikic@php.net> | 2015-05-17 18:59:34 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-05-17 19:54:12 +0200 |
commit | 440481fb3e15d78d0d92432c3adba9067989f43a (patch) | |
tree | 9a083b31d5b1987a09f0f36589099c01181cd7ed /ext/reflection/tests | |
parent | 3ae995f03c8f60c4a4c9718262545cf5a6a08da3 (diff) | |
download | php-git-440481fb3e15d78d0d92432c3adba9067989f43a.tar.gz |
Display TypeExceptions like normal exceptions
We currently don't show the argument at which the error actually
occured in the trace - should probably either add it or don't
display args on incomplete frames altogether, otherwise this'll
probably be confusing.
Diffstat (limited to 'ext/reflection/tests')
-rw-r--r-- | ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt b/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt index b06818901d..ada3c6db48 100644 --- a/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt +++ b/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt @@ -17,4 +17,8 @@ var_dump($a); ?> --EXPECTF-- -Fatal error: Argument 1 passed to ReflectionClass::newInstanceArgs() must be of the type array, string given in %s on line 8 +Fatal error: Uncaught TypeException: Argument 1 passed to ReflectionClass::newInstanceArgs() must be of the type array, string given in %s:8 +Stack trace: +#0 %s(%d): ReflectionClass->newInstanceArgs('x') +#1 {main} + thrown in %s on line 8 |