Skip to content

Commit

Permalink
Remove sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Nov 27, 2017
1 parent c3021bd commit b128380
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions libraries/src/Application/CliApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Joomla\CMS\Application\CLI\CliInput;
use Joomla\CMS\Application\CLI\CliOutput;
use Joomla\CMS\Application\CLI\Output\Stdout;
use Joomla\CMS\Input\Cli as CMSCli;
use Joomla\Input\Cli;
use Joomla\Input\Input;
use Joomla\DI\Container;
Expand Down Expand Up @@ -92,17 +91,6 @@ public function __construct(Input $input = null, Registry $config = null, CliOut

$this->output = $output ?: new Stdout;

if ($cliInput && !($cliInput instanceof CMSCli || $cliInput instanceof Cli))
{
throw new \InvalidArgumentException(
sprintf(
'The Input object must be a %s or %s object',
CMSCli::class,
Cli::class
)
);
}

$this->cliInput = $cliInput ?: new CliInput;

if ($dispatcher)
Expand Down

0 comments on commit b128380

Please sign in to comment.