handle(); exit(1); } /** * Handles the panic. */ private function handle(): void { /** @var OutputInterface $output */ $output = Container::getInstance()->get(OutputInterface::class); if ($this->throwable instanceof Contracts\Panicable) { $this->throwable->render($output); exit($this->throwable->exitCode()); } $writer = new Writer(null, $output); $inspector = new Inspector($this->throwable); $output->writeln(''); $writer->write($inspector); $output->writeln(''); exit(1); } }