Skip to content

Commit fe5255b

Browse files
committed
Remove usage of constant for better consistency across the codebase
1 parent 1d52937 commit fe5255b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Symfony/Component/Console/Command/CompleteCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
155155
throw $e;
156156
}
157157

158-
return self::FAILURE;
158+
return 2;
159159
}
160160

161-
return self::SUCCESS;
161+
return 0;
162162
}
163163

164164
private function createCompletionInput(InputInterface $input): CompletionInput

src/Symfony/Component/Console/Command/DumpCompletionCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8585
if ($input->getOption('debug')) {
8686
$this->tailDebugLog($commandName, $output);
8787

88-
return self::SUCCESS;
88+
return 0;
8989
}
9090

9191
$shell = $input->getArgument('shell') ?? self::guessShell();
@@ -102,12 +102,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
102102
$output->writeln(sprintf('<error>Shell not detected, Symfony shell completion only supports "%s").</>', implode('", "', $supportedShells)));
103103
}
104104

105-
return self::INVALID;
105+
return 2;
106106
}
107107

108108
$output->write(str_replace(['{{ COMMAND_NAME }}', '{{ VERSION }}'], [$commandName, $this->getApplication()->getVersion()], file_get_contents($completionFile)));
109109

110-
return self::SUCCESS;
110+
return 0;
111111
}
112112

113113
private static function guessShell(): string

0 commit comments

Comments
 (0)