fix: helper access

This commit is contained in:
Nuno Maduro
2024-01-23 17:40:37 +00:00
parent bb593846e5
commit 1f8e6e4e9f

View File

@ -93,10 +93,9 @@ final class Help implements HandlesArguments
*/ */
private function getContent(): array private function getContent(): array
{ {
$helpReflection = new \ReflectionClass(PHPUnitHelp::class); $helpReflection = new PHPUnitHelp();
/** @var array<string, array<int, array{arg: string, desc: string}>> $content */ $content = (fn (): array => $this->elements())->call($helpReflection);
$content = $helpReflection->getConstant('HELP_TEXT');
$content['Configuration'] = [...[[ $content['Configuration'] = [...[[
'arg' => '--init', 'arg' => '--init',