File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ class Exception implements Throwable
386
386
private $trace; // backtrace
387
387
private $previous; // previous exception if nested exception
388
388
389
- public function __construct($message = '', $code = 0, Throwable $previous = null);
389
+ public function __construct($message = '', $code = 0, ? Throwable $previous = null);
390
390
391
391
final private function __clone(); // Inhibits cloning of exceptions.
392
392
@@ -432,7 +432,7 @@ class Exception implements Throwable
432
432
class MyException extends Exception
433
433
{
434
434
// Redefine the exception so message isn't optional
435
- public function __construct($message, $code = 0, Throwable $previous = null) {
435
+ public function __construct($message, $code = 0, ? Throwable $previous = null) {
436
436
// some code
437
437
438
438
// make sure everything is assigned properly
You can’t perform that action at this time.
0 commit comments