Skip to content

Commit c211ba9

Browse files
committed
phpstan
1 parent ee4fd84 commit c211ba9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Command/SentrySubcommandTestCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
3434
{
3535
$this->logger->error('Subcommand will run now');
3636

37-
$this->getApplication()->doRun(new ArrayInput(['command' => $this->subcommand->getName()]), new NullOutput());
37+
if ($this->getApplication() !== null) {
38+
$this->getApplication()->doRun(new ArrayInput(['command' => $this->subcommand->getName()]), new NullOutput());
39+
}
3840

3941
$this->logger->error('Breadcrumb after subcommand');
4042

0 commit comments

Comments
 (0)