Skip to content

Commit

Permalink
Add remaining missing return types to safe methods
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj authored and nicolas-grekas committed Apr 24, 2023
1 parent 641284a commit da57aa9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Command/AbstractFailedMessagesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ protected function printWarningAvailableFailureTransports(SymfonyStyle $io, ?str
}
}

protected function interactiveChooseFailureTransport(SymfonyStyle $io)
protected function interactiveChooseFailureTransport(SymfonyStyle $io): string
{
$failedTransports = array_keys($this->failureTransports->getProvidedServices());
$question = new ChoiceQuestion('Select failed transport:', $failedTransports, 0);
Expand Down
2 changes: 1 addition & 1 deletion Handler/HandlerDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getBatchHandler(): ?BatchHandlerInterface
return $this->batchHandler;
}

public function getOption(string $option)
public function getOption(string $option): mixed
{
return $this->options[$option] ?? null;
}
Expand Down
2 changes: 1 addition & 1 deletion Transport/Serialization/PhpSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private function safelyUnserialize(string $contents): Envelope
/**
* @internal
*/
public static function handleUnserializeCallback(string $class)
public static function handleUnserializeCallback(string $class): never
{
throw new MessageDecodingFailedException(sprintf('Message class "%s" not found during decoding.', $class));
}
Expand Down

0 comments on commit da57aa9

Please sign in to comment.