From 1f8e6e4e9f9cb2cb08017c56c29cd6c47d744ea5 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 23 Jan 2024 17:40:37 +0000 Subject: [PATCH] fix: helper access --- src/Plugins/Help.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Plugins/Help.php b/src/Plugins/Help.php index c8e4d32f..9e1c3f53 100644 --- a/src/Plugins/Help.php +++ b/src/Plugins/Help.php @@ -93,10 +93,9 @@ final class Help implements HandlesArguments */ private function getContent(): array { - $helpReflection = new \ReflectionClass(PHPUnitHelp::class); + $helpReflection = new PHPUnitHelp(); - /** @var array> $content */ - $content = $helpReflection->getConstant('HELP_TEXT'); + $content = (fn (): array => $this->elements())->call($helpReflection); $content['Configuration'] = [...[[ 'arg' => '--init',