Skip to content

Commit

Permalink
Fix AbstractCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
mhabibi committed Sep 20, 2022
1 parent d9817c9 commit bb9ece2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Command/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ protected function initialize(InputInterface $input, OutputInterface $output)
$this->output = $output;
$this->cacheDir = $kernel->getCacheDir().'/propel';

if ($input->hasArgument('bundle') && '@' === substr($input->getArgument('bundle'), 0, 1)) {
if ($input->hasArgument('bundle')
&& !empty($input->getArgument('bundle'))
&& '@' === substr($input->getArgument('bundle'), 0, 1)
) {
$this->bundle = $this
->getContainer()
->get('kernel')
Expand Down

0 comments on commit bb9ece2

Please sign in to comment.