Skip to content

Commit 7c60a66

Browse files
committed
add fatal type
1 parent 5077732 commit 7c60a66

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Command/Preview/ErrorPreviewConsoleCommand.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ErrorPreviewConsoleCommand extends BaseLoggingCommand
1616
protected function configure()
1717
{
1818
$this
19-
->addArgument('type', InputArgument::OPTIONAL, 'Type of preview: exception, error, warning');
19+
->addArgument('type', InputArgument::OPTIONAL, 'Type of preview: exception, error, warning, fatal');
2020
}
2121

2222
protected function execute(InputInterface $input, OutputInterface $output)
@@ -35,5 +35,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
3535
$array = [];
3636
$array[1]; // E_WARNING
3737
}
38+
39+
if ($type === 'fatal') {
40+
$y = new class implements \stdClass {
41+
};
42+
}
3843
}
3944
}

0 commit comments

Comments
 (0)