Skip to content

Commit de74db6

Browse files
Remove always true/false occurrences
1 parent 8f6d3ec commit de74db6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DependencyInjection/AddConsoleCommandPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function process(ContainerBuilder $container): void
5353
$aliases = str_replace('%', '%%', $class::getDefaultName() ?? '');
5454
}
5555

56-
$aliases = explode('|', $aliases ?? '');
56+
$aliases = explode('|', $aliases);
5757
$commandName = array_shift($aliases);
5858

5959
if ($isHidden = '' === $commandName) {

SingleCommandApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ public function run(?InputInterface $input = null, ?OutputInterface $output = nu
6767
$this->running = false;
6868
}
6969

70-
return $ret ?? 1;
70+
return $ret;
7171
}
7272
}

0 commit comments

Comments
 (0)