@@ -15,13 +15,13 @@ final class Configuration
1515 ];
1616
1717 /** @var array<string, class-string<DevToolsCommand>>|null */
18- private ? array $ enabledTools = null ;
18+ private array | null $ enabledTools = null ;
1919
2020 /** @var list<string>|null */
21- private ? array $ phpVersions = null ;
21+ private array | null $ phpVersions = null ;
2222
2323 private string $ rootDir ;
24- private ? string $ threads = null ;
24+ private string | null $ threads = null ;
2525
2626 public function __construct ()
2727 {
@@ -42,9 +42,7 @@ public function __construct()
4242 throw new \RuntimeException ('Unable to determine project root ' );
4343 }
4444
45- /**
46- * @return array<string, class-string<DevToolsCommand>>
47- */
45+ /** @return array<string, class-string<DevToolsCommand>> */
4846 public function getEnabledTools (): array
4947 {
5048 if (null === $ this ->enabledTools ) {
@@ -54,9 +52,7 @@ public function getEnabledTools(): array
5452 return $ this ->enabledTools ;
5553 }
5654
57- /**
58- * @return list<string>
59- */
55+ /** @return list<string> */
6056 public function getPhpVersions (): array
6157 {
6258 if (null === $ this ->phpVersions ) {
@@ -87,13 +83,11 @@ private function determineThreads(): string
8783 'Linux ' => Process::fromShellCommandline ('nproc ' )->mustRun ()->getOutput (),
8884 'Darwin ' => Process::fromShellCommandline ('sysctl -n hw.logicalcpu ' )->mustRun ()->getOutput (),
8985 default => '2 ' ,
90- }
86+ },
9187 );
9288 }
9389
94- /**
95- * @return list<string>
96- */
90+ /** @return list<string> */
9791 private function gatherPhpVersions (): array
9892 {
9993 if (false === $ composerJson = \file_get_contents ($ this ->rootDir . 'composer.json ' )) {
@@ -124,9 +118,7 @@ private function gatherPhpVersions(): array
124118 return $ versions ;
125119 }
126120
127- /**
128- * @return list<class-string<DevToolsCommand>>
129- */
121+ /** @return list<class-string<DevToolsCommand>> */
130122 private function gatherAvailableCommands (): array
131123 {
132124 $ commands = [];
@@ -142,9 +134,7 @@ private function gatherAvailableCommands(): array
142134 return $ commands ;
143135 }
144136
145- /**
146- * @return array<string, class-string<DevToolsCommand>>
147- */
137+ /** @return array<string, class-string<DevToolsCommand>> */
148138 private function gatherEnabledTools (): array
149139 {
150140 $ enabledTools = [];
0 commit comments