Skip to content

Commit

Permalink
chore: update some comments and add ci test on php8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Feb 8, 2024
1 parent c420abc commit e5d0fa5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ['8.0', 8.1] # 7.2,
php: ['8.0', 8.1, 8.2] # 7.2,
# os: [ubuntu-latest] # , macOS-latest, windows-latest,
coverage: ['none']
include:
Expand Down
6 changes: 5 additions & 1 deletion src/Concern/HelperRenderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ protected function doBuildHelp(array $argDefines, array $optDefines, bool $withC
}

/**
* @param array|Argument|Option $define
* @param array|Argument|Option $define = FlagsParser::DEFINE_ITEM
*
* @return array
* @see FlagsParser::DEFINE_ITEM for array $define
Expand Down Expand Up @@ -237,6 +237,10 @@ protected function formatDesc(Argument|Option|array $define): array
$desc = array_shift($lines);
}

if (FlagType::isArray($define['type'])) {
$desc .= ColorTag::wrap(' (repeatable)', 'cyan');
}

return [$desc, $lines];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Concern/RuleParserTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function addOptByRule(string $name, array|string $rule): static
}

/**
* @param array $rules
* @param array $rules data like: [name => rule, ...]
*
* @see addArgByRule()
*/
Expand Down

0 comments on commit e5d0fa5

Please sign in to comment.