Skip to content

Commit

Permalink
DX: HelpCommand - fix docblock (#6584)
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus authored Oct 11, 2022
1 parent a973208 commit a1c7c30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Command/HelpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ public static function toString($value): string
/**
* Returns the allowed values of the given option that can be converted to a string.
*
* @return list<null|AllowedValueSubset|scalar>
* @return null|list<AllowedValueSubset|mixed>
*/
public static function getDisplayableAllowedValues(FixerOptionInterface $option): ?array
{
$allowed = $option->getAllowedValues();

if (null !== $allowed) {
$allowed = array_filter($allowed, static function ($value): bool {
return null === $value || \is_scalar($value) || $value instanceof AllowedValueSubset;
return !$value instanceof \Closure;
});

usort($allowed, static function ($valueA, $valueB): int {
Expand Down

0 comments on commit a1c7c30

Please sign in to comment.