From d53ddf9bafb578242cc3a2c53d894f210739e2c4 Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Wed, 7 Apr 2021 18:12:22 +0200 Subject: [PATCH] [PHPDoc] Fix some union type cases --- Descriptor/Descriptor.php | 10 ---------- Descriptor/TextDescriptor.php | 2 +- Helper/QuestionHelper.php | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Descriptor/Descriptor.php b/Descriptor/Descriptor.php index d25a708e4..9c3878d1e 100644 --- a/Descriptor/Descriptor.php +++ b/Descriptor/Descriptor.php @@ -72,36 +72,26 @@ protected function write($content, $decorated = false) /** * Describes an InputArgument instance. - * - * @return string|mixed */ abstract protected function describeInputArgument(InputArgument $argument, array $options = []); /** * Describes an InputOption instance. - * - * @return string|mixed */ abstract protected function describeInputOption(InputOption $option, array $options = []); /** * Describes an InputDefinition instance. - * - * @return string|mixed */ abstract protected function describeInputDefinition(InputDefinition $definition, array $options = []); /** * Describes a Command instance. - * - * @return string|mixed */ abstract protected function describeCommand(Command $command, array $options = []); /** * Describes an Application instance. - * - * @return string|mixed */ abstract protected function describeApplication(Application $application, array $options = []); } diff --git a/Descriptor/TextDescriptor.php b/Descriptor/TextDescriptor.php index 1db3686be..220bd2e68 100644 --- a/Descriptor/TextDescriptor.php +++ b/Descriptor/TextDescriptor.php @@ -298,7 +298,7 @@ private function formatDefaultValue($default): string } /** - * @param (Command|string)[] $commands + * @param array $commands */ private function getColumnWidth(array $commands): int { diff --git a/Helper/QuestionHelper.php b/Helper/QuestionHelper.php index 6dde580cf..f1a3c4b5d 100644 --- a/Helper/QuestionHelper.php +++ b/Helper/QuestionHelper.php @@ -97,7 +97,7 @@ public static function disableStty() /** * Asks the question to the user. * - * @return bool|mixed|string|null + * @return mixed * * @throws RuntimeException In case the fallback is deactivated and the response cannot be hidden */