Skip to content

Commit

Permalink
[make:*] additional type improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed Apr 2, 2024
1 parent c8d5e0d commit bc58880
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Maker/AbstractMaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ protected function writeSuccessMessage(ConsoleStyle $io)
$io->newLine();
}

/** @param array<class-string, string> $dependencies */
protected function addDependencies(array $dependencies, ?string $message = null): string
{
$dependencyBuilder = new DependencyBuilder();
Expand Down
1 change: 1 addition & 0 deletions src/Maker/MakeListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
}
}

/** @return void */
public function configureDependencies(DependencyBuilder $dependencies)
{
}
Expand Down
1 change: 1 addition & 0 deletions src/Maker/MakeMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public static function getCommandDescription(): string
return 'Create a new migration based on database changes';
}

/** @return void */
public function setApplication(Application $application)
{
$this->application = $application;
Expand Down
1 change: 1 addition & 0 deletions src/Maker/MakeRegistrationForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
}
}

/** @param array<string, mixed> $securityData */
private function interactAuthenticatorQuestions(ConsoleStyle $io, InteractiveSecurityHelper $interactiveSecurityHelper, array $securityData): void
{
// get list of authenticators
Expand Down
2 changes: 2 additions & 0 deletions src/Maker/MakeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public static function getCommandName(): string

/**
* @deprecated remove this method when removing make:unit-test and make:functional-test
*
* @return string[]
*/
public static function getCommandAliases(): iterable
{
Expand Down

0 comments on commit bc58880

Please sign in to comment.