Skip to content

Commit

Permalink
Command::getApplication can't work with both PHP 7.0 and 8.x /shrug
Browse files Browse the repository at this point in the history
  • Loading branch information
bobthecow committed Jan 18, 2023
1 parent a615d62 commit 20df571
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/Command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,19 +274,4 @@ protected function getTableHelper(): TableHelper
->setHorizontalBorderChar('')
->setCrossingChar('');
}

/**
* Gets the application instance for this command.
*
* @return Shell|null
*/
public function getApplication()
{
$app = parent::getApplication();
if ($app !== null && !$app instanceof Shell) {
throw new \RuntimeException('Invalid app instance');
}

return $app;
}
}

0 comments on commit 20df571

Please sign in to comment.