Skip to content

Commit

Permalink
Remove always true/false occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Oct 23, 2024
1 parent 8f6d3ec commit de74db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/AddConsoleCommandPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function process(ContainerBuilder $container): void
$aliases = str_replace('%', '%%', $class::getDefaultName() ?? '');
}

$aliases = explode('|', $aliases ?? '');
$aliases = explode('|', $aliases);
$commandName = array_shift($aliases);

if ($isHidden = '' === $commandName) {
Expand Down
2 changes: 1 addition & 1 deletion SingleCommandApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ public function run(?InputInterface $input = null, ?OutputInterface $output = nu
$this->running = false;
}

return $ret ?? 1;
return $ret;
}
}

0 comments on commit de74db6

Please sign in to comment.