Skip to content

Commit 2564804

Browse files
authored
feature #1502 [make:*] additional type improvements
1 parent 5bf40ae commit 2564804

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

src/Maker/AbstractMaker.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ protected function writeSuccessMessage(ConsoleStyle $io)
4141
$io->newLine();
4242
}
4343

44+
/** @param array<class-string, string> $dependencies */
4445
protected function addDependencies(array $dependencies, ?string $message = null): string
4546
{
4647
$dependencyBuilder = new DependencyBuilder();

src/Maker/MakeListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
138138
}
139139
}
140140

141+
/** @return void */
141142
public function configureDependencies(DependencyBuilder $dependencies)
142143
{
143144
}

src/Maker/MakeMigration.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public static function getCommandDescription(): string
5151
return 'Create a new migration based on database changes';
5252
}
5353

54+
/** @return void */
5455
public function setApplication(Application $application)
5556
{
5657
$this->application = $application;
@@ -77,7 +78,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
7778
;
7879
}
7980

80-
/** @return void */
81+
/** @return void|int */
8182
public function generate(InputInterface $input, ConsoleStyle $io, Generator $generator)
8283
{
8384
$options = ['doctrine:migrations:diff'];

src/Maker/MakeRegistrationForm.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
182182
}
183183
}
184184

185+
/** @param array<string, mixed> $securityData */
185186
private function interactAuthenticatorQuestions(ConsoleStyle $io, InteractiveSecurityHelper $interactiveSecurityHelper, array $securityData): void
186187
{
187188
// get list of authenticators

src/Maker/MakeTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public static function getCommandName(): string
5656

5757
/**
5858
* @deprecated remove this method when removing make:unit-test and make:functional-test
59+
*
60+
* @return string[]
5961
*/
6062
public static function getCommandAliases(): iterable
6163
{

0 commit comments

Comments
 (0)