Skip to content

Commit 9fa3eaf

Browse files
authored
minor #1507 [make:authenticator] more typehints / types
1 parent ec373d7 commit 9fa3eaf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Maker/MakeAuthenticator.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
280280
);
281281
}
282282

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

404-
private function generateNextMessage(bool $securityYamlUpdated, string $authenticatorType, string $authenticatorClass, $userClass, bool $logoutSetup, bool $supportRememberMe, bool $alwaysRememberMe): array
405+
/** @return string[] */
406+
private function generateNextMessage(bool $securityYamlUpdated, string $authenticatorType, string $authenticatorClass, ?string $userClass, bool $logoutSetup, bool $supportRememberMe, bool $alwaysRememberMe): array
405407
{
406408
$nextTexts = ['Next:'];
407409
$nextTexts[] = '- Customize your new authenticator.';
@@ -432,6 +434,7 @@ private function generateNextMessage(bool $securityYamlUpdated, string $authenti
432434
return $nextTexts;
433435
}
434436

437+
/** @param array<mixed> $securityData */
435438
private function userClassHasEncoder(array $securityData, string $userClass): bool
436439
{
437440
$userNeedsEncoder = false;

0 commit comments

Comments
 (0)