From cfe362e3d9da8c6ce703b30c6db8e1958fe868c6 Mon Sep 17 00:00:00 2001 From: Jesse Rushlow <40327885+jrushlow@users.noreply.github.com> Date: Tue, 2 Apr 2024 16:44:08 -0400 Subject: [PATCH] feature #1499 [make:*] add docBlock return types for non-internal makers --- src/Maker/MakeFixtures.php | 3 +++ src/Maker/MakeMigration.php | 4 +++- src/Maker/MakeValidator.php | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Maker/MakeFixtures.php b/src/Maker/MakeFixtures.php index b9ca066cd..7f820c143 100644 --- a/src/Maker/MakeFixtures.php +++ b/src/Maker/MakeFixtures.php @@ -39,6 +39,7 @@ public static function getCommandDescription(): string return 'Create a new class to load Doctrine fixtures'; } + /** @return void */ public function configureCommand(Command $command, InputConfiguration $inputConf) { $command @@ -47,6 +48,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf ; } + /** @return void */ public function generate(InputInterface $input, ConsoleStyle $io, Generator $generator) { $fixturesClassNameDetails = $generator->createClassNameDetails( @@ -78,6 +80,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen ]); } + /** @return void */ public function configureDependencies(DependencyBuilder $dependencies) { $dependencies->addClassDependency( diff --git a/src/Maker/MakeMigration.php b/src/Maker/MakeMigration.php index 74c19c9ec..88e2a200e 100644 --- a/src/Maker/MakeMigration.php +++ b/src/Maker/MakeMigration.php @@ -77,6 +77,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf ; } + /** @return void */ public function generate(InputInterface $input, ConsoleStyle $io, Generator $generator) { $options = ['doctrine:migrations:diff']; @@ -145,7 +146,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen ]); } - private function noChangesMessage(ConsoleStyle $io) + private function noChangesMessage(ConsoleStyle $io): void { $io->warning([ 'No database changes were detected.', @@ -156,6 +157,7 @@ private function noChangesMessage(ConsoleStyle $io) ]); } + /** @return void */ public function configureDependencies(DependencyBuilder $dependencies) { $dependencies->addClassDependency( diff --git a/src/Maker/MakeValidator.php b/src/Maker/MakeValidator.php index 811c359de..7fb12c299 100644 --- a/src/Maker/MakeValidator.php +++ b/src/Maker/MakeValidator.php @@ -37,6 +37,7 @@ public static function getCommandDescription(): string return 'Create a new validator and constraint class'; } + /** @return void */ public function configureCommand(Command $command, InputConfiguration $inputConf) { $command @@ -45,6 +46,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf ; } + /** @return void */ public function generate(InputInterface $input, ConsoleStyle $io, Generator $generator) { $validatorClassNameDetails = $generator->createClassNameDetails( @@ -79,6 +81,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen ]); } + /** @return void */ public function configureDependencies(DependencyBuilder $dependencies) { $dependencies->addClassDependency(