summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-09-19 14:13:42 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-09-21 12:46:50 +0200
commit4c821cf20668776737272587e7a87876b4fca25e (patch)
tree623ae5ff87a26d0c0254727c9f5b4ff4dfefa99e /sapi
parent9f074a5c31c6fbed8de852909a294958ae32eb9d (diff)
downloadphp-git-4c821cf20668776737272587e7a87876b4fca25e.tar.gz
Improve default value handling of Exception constructors
Closes GH-6166
Diffstat (limited to 'sapi')
-rw-r--r--sapi/cli/tests/005.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/cli/tests/005.phpt b/sapi/cli/tests/005.phpt
index a1d51088ab..ca3dfd9730 100644
--- a/sapi/cli/tests/005.phpt
+++ b/sapi/cli/tests/005.phpt
@@ -37,7 +37,7 @@ string(183) "Class [ <internal:Core> class stdClass ] {
}
"
-string(2177) "Class [ <internal:Core> class Exception implements Throwable, Stringable ] {
+string(2170) "Class [ <internal:Core> class Exception implements Throwable, Stringable ] {
- Constants [0] {
}
@@ -68,7 +68,7 @@ string(2177) "Class [ <internal:Core> class Exception implements Throwable, Stri
Method [ <internal:Core, ctor> public method __construct ] {
- Parameters [3] {
- Parameter #0 [ <optional> string $message = <default> ]
+ Parameter #0 [ <optional> string $message = "" ]
Parameter #1 [ <optional> int $code = 0 ]
Parameter #2 [ <optional> ?Throwable $previous = null ]
}