Skip to content

Commit e5d0fa5

Browse files
committed
chore: update some comments and add ci test on php8.2
1 parent c420abc commit e5d0fa5

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/php.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
php: ['8.0', 8.1] # 7.2,
19+
php: ['8.0', 8.1, 8.2] # 7.2,
2020
# os: [ubuntu-latest] # , macOS-latest, windows-latest,
2121
coverage: ['none']
2222
include:

src/Concern/HelperRenderTrait.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ protected function doBuildHelp(array $argDefines, array $optDefines, bool $withC
202202
}
203203

204204
/**
205-
* @param array|Argument|Option $define
205+
* @param array|Argument|Option $define = FlagsParser::DEFINE_ITEM
206206
*
207207
* @return array
208208
* @see FlagsParser::DEFINE_ITEM for array $define
@@ -237,6 +237,10 @@ protected function formatDesc(Argument|Option|array $define): array
237237
$desc = array_shift($lines);
238238
}
239239

240+
if (FlagType::isArray($define['type'])) {
241+
$desc .= ColorTag::wrap(' (repeatable)', 'cyan');
242+
}
243+
240244
return [$desc, $lines];
241245
}
242246

src/Concern/RuleParserTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function addOptByRule(string $name, array|string $rule): static
128128
}
129129

130130
/**
131-
* @param array $rules
131+
* @param array $rules data like: [name => rule, ...]
132132
*
133133
* @see addArgByRule()
134134
*/

0 commit comments

Comments
 (0)