diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-28 14:01:29 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-28 14:01:29 +0200 |
commit | 5716fa7f49db138f9258ef5f33105f9ee4a4c772 (patch) | |
tree | 0d75a96c827944b58465d0dc23994c3cbb030e8f /sapi/cli | |
parent | aaae77f7f113d4a0a684e2615ef798703ccd089e (diff) | |
download | php-git-5716fa7f49db138f9258ef5f33105f9ee4a4c772.tar.gz |
Make Exception::$previous a typed property
Exception::$previous is a private property, so we can add a type:
private ?Throwable $previous = null;
Diffstat (limited to 'sapi/cli')
-rw-r--r-- | sapi/cli/tests/005.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/cli/tests/005.phpt b/sapi/cli/tests/005.phpt index c037889c41..ab616d779f 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(2166) "Class [ <internal:Core> class Exception implements Throwable, Stringable ] { +string(2177) "Class [ <internal:Core> class Exception implements Throwable, Stringable ] { - Constants [0] { } @@ -55,7 +55,7 @@ string(2166) "Class [ <internal:Core> class Exception implements Throwable, Stri Property [ protected $file = NULL ] Property [ protected $line = NULL ] Property [ private array $trace = Array ] - Property [ private $previous = NULL ] + Property [ private ?Throwable $previous = NULL ] } - Methods [11] { |