Skip to content

Commit 8dc5e3d

Browse files
committed
[make:stimulus-controller] add typehints
1 parent 5bf40ae commit 8dc5e3d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Maker/MakeStimulusController.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
131131
]);
132132
}
133133

134+
/** @param string[] $targets */
134135
private function askForNextTarget(ConsoleStyle $io, array $targets, bool $isFirstTarget): ?string
135136
{
136137
$questionText = 'New target name (press <return> to stop adding targets)';
@@ -150,6 +151,10 @@ private function askForNextTarget(ConsoleStyle $io, array $targets, bool $isFirs
150151
return !$targetName ? null : $targetName;
151152
}
152153

154+
/**
155+
* @param array<string, array<string, string>> $values
156+
* @return null|array<string, string>
157+
*/
153158
private function askForNextValue(ConsoleStyle $io, array $values, bool $isFirstValue): ?array
154159
{
155160
$questionText = 'New value name (press <return> to stop adding values)';
@@ -215,6 +220,7 @@ private function printAvailableTypes(ConsoleStyle $io): void
215220
}
216221
}
217222

223+
/** @return string[] */
218224
private function getValuesTypes(): array
219225
{
220226
return [

0 commit comments

Comments
 (0)