Skip to content

Commit

Permalink
minor #1507 [make:authenticator] more typehints / types
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed Apr 5, 2024
1 parent ec373d7 commit 9fa3eaf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Maker/MakeAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
);
}

private function generateAuthenticatorClass(array $securityData, string $authenticatorType, string $authenticatorClass, $userClass, $userNameField, bool $supportRememberMe): void
/** @param array<mixed> $securityData */
private function generateAuthenticatorClass(array $securityData, string $authenticatorType, string $authenticatorClass, ?string $userClass, ?string $userNameField, bool $supportRememberMe): void
{
$useStatements = new UseStatementGenerator([
Request::class,
Expand Down Expand Up @@ -401,7 +402,8 @@ private function generateFormLoginFiles(string $controllerClass, string $userNam
);
}

private function generateNextMessage(bool $securityYamlUpdated, string $authenticatorType, string $authenticatorClass, $userClass, bool $logoutSetup, bool $supportRememberMe, bool $alwaysRememberMe): array
/** @return string[] */
private function generateNextMessage(bool $securityYamlUpdated, string $authenticatorType, string $authenticatorClass, ?string $userClass, bool $logoutSetup, bool $supportRememberMe, bool $alwaysRememberMe): array
{
$nextTexts = ['Next:'];
$nextTexts[] = '- Customize your new authenticator.';
Expand Down Expand Up @@ -432,6 +434,7 @@ private function generateNextMessage(bool $securityYamlUpdated, string $authenti
return $nextTexts;
}

/** @param array<mixed> $securityData */
private function userClassHasEncoder(array $securityData, string $userClass): bool
{
$userNeedsEncoder = false;
Expand Down

0 comments on commit 9fa3eaf

Please sign in to comment.