Skip to content

Commit cfe362e

Browse files
authored
feature #1499 [make:*] add docBlock return types for non-internal makers
1 parent 07614b5 commit cfe362e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/Maker/MakeFixtures.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public static function getCommandDescription(): string
3939
return 'Create a new class to load Doctrine fixtures';
4040
}
4141

42+
/** @return void */
4243
public function configureCommand(Command $command, InputConfiguration $inputConf)
4344
{
4445
$command
@@ -47,6 +48,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
4748
;
4849
}
4950

51+
/** @return void */
5052
public function generate(InputInterface $input, ConsoleStyle $io, Generator $generator)
5153
{
5254
$fixturesClassNameDetails = $generator->createClassNameDetails(
@@ -78,6 +80,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
7880
]);
7981
}
8082

83+
/** @return void */
8184
public function configureDependencies(DependencyBuilder $dependencies)
8285
{
8386
$dependencies->addClassDependency(

src/Maker/MakeMigration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
7777
;
7878
}
7979

80+
/** @return void */
8081
public function generate(InputInterface $input, ConsoleStyle $io, Generator $generator)
8182
{
8283
$options = ['doctrine:migrations:diff'];
@@ -145,7 +146,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
145146
]);
146147
}
147148

148-
private function noChangesMessage(ConsoleStyle $io)
149+
private function noChangesMessage(ConsoleStyle $io): void
149150
{
150151
$io->warning([
151152
'No database changes were detected.',
@@ -156,6 +157,7 @@ private function noChangesMessage(ConsoleStyle $io)
156157
]);
157158
}
158159

160+
/** @return void */
159161
public function configureDependencies(DependencyBuilder $dependencies)
160162
{
161163
$dependencies->addClassDependency(

src/Maker/MakeValidator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public static function getCommandDescription(): string
3737
return 'Create a new validator and constraint class';
3838
}
3939

40+
/** @return void */
4041
public function configureCommand(Command $command, InputConfiguration $inputConf)
4142
{
4243
$command
@@ -45,6 +46,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
4546
;
4647
}
4748

49+
/** @return void */
4850
public function generate(InputInterface $input, ConsoleStyle $io, Generator $generator)
4951
{
5052
$validatorClassNameDetails = $generator->createClassNameDetails(
@@ -79,6 +81,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
7981
]);
8082
}
8183

84+
/** @return void */
8285
public function configureDependencies(DependencyBuilder $dependencies)
8386
{
8487
$dependencies->addClassDependency(

0 commit comments

Comments
 (0)