Skip to content

Commit 2ac7479

Browse files
committed
minor #40728 [PHPDoc] Fix some union type cases (fancyweb)
This PR was merged into the 4.4 branch. Discussion ---------- [PHPDoc] Fix some union type cases | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - While working on symfony/symfony#40154, I discovered some PHPDoc issues, I'm going to comment in the review. Upper branches will need some fixes too. Commits ------- dd1481642b [PHPDoc] Fix some union type cases
2 parents 1b95e23 + d53ddf9 commit 2ac7479

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

Descriptor/Descriptor.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,36 +72,26 @@ protected function write($content, $decorated = false)
7272

7373
/**
7474
* Describes an InputArgument instance.
75-
*
76-
* @return string|mixed
7775
*/
7876
abstract protected function describeInputArgument(InputArgument $argument, array $options = []);
7977

8078
/**
8179
* Describes an InputOption instance.
82-
*
83-
* @return string|mixed
8480
*/
8581
abstract protected function describeInputOption(InputOption $option, array $options = []);
8682

8783
/**
8884
* Describes an InputDefinition instance.
89-
*
90-
* @return string|mixed
9185
*/
9286
abstract protected function describeInputDefinition(InputDefinition $definition, array $options = []);
9387

9488
/**
9589
* Describes a Command instance.
96-
*
97-
* @return string|mixed
9890
*/
9991
abstract protected function describeCommand(Command $command, array $options = []);
10092

10193
/**
10294
* Describes an Application instance.
103-
*
104-
* @return string|mixed
10595
*/
10696
abstract protected function describeApplication(Application $application, array $options = []);
10797
}

Descriptor/TextDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private function formatDefaultValue($default): string
298298
}
299299

300300
/**
301-
* @param (Command|string)[] $commands
301+
* @param array<Command|string> $commands
302302
*/
303303
private function getColumnWidth(array $commands): int
304304
{

Helper/QuestionHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static function disableStty()
9797
/**
9898
* Asks the question to the user.
9999
*
100-
* @return bool|mixed|string|null
100+
* @return mixed
101101
*
102102
* @throws RuntimeException In case the fallback is deactivated and the response cannot be hidden
103103
*/

0 commit comments

Comments
 (0)