Skip to content

Commit 55aa350

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: Remove usage of constant for better consistency across the codebase [HttpClient] Ensure HttplugClient ignores invalid HTTP headers
2 parents 12288d9 + 9a16a1c commit 55aa350

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Command/CompleteCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
173173
throw $e;
174174
}
175175

176-
return self::FAILURE;
176+
return 2;
177177
}
178178

179-
return self::SUCCESS;
179+
return 0;
180180
}
181181

182182
private function createCompletionInput(InputInterface $input): CompletionInput

Command/DumpCompletionCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9696
if ($input->getOption('debug')) {
9797
$this->tailDebugLog($commandName, $output);
9898

99-
return self::SUCCESS;
99+
return 0;
100100
}
101101

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

116-
return self::INVALID;
116+
return 2;
117117
}
118118

119119
$output->write(str_replace(['{{ COMMAND_NAME }}', '{{ VERSION }}'], [$commandName, CompleteCommand::COMPLETION_API_VERSION], file_get_contents($completionFile)));
120120

121-
return self::SUCCESS;
121+
return 0;
122122
}
123123

124124
private static function guessShell(): string

0 commit comments

Comments
 (0)