Skip to content

Commit f91952a

Browse files
committed
docs: fix @return
1 parent 579e0a2 commit f91952a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/Controllers/LoginController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public function loginAction(): RedirectResponse
7272
/**
7373
* Returns the rules that should be used for validation.
7474
*
75-
* @return string[]
75+
* @return array<string, array<string, array<string>|string>>
76+
* @phpstan-return array<string, array<string, string|list<string>>>
7677
*/
7778
protected function getValidationRules(): array
7879
{

src/Controllers/MagicLinkController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ private function recordLoginAttempt(
210210
/**
211211
* Returns the rules that should be used for validation.
212212
*
213-
* @return array<string, array<string, string>>
213+
* @return array<string, array<string, array<string>|string>>
214+
* @phpstan-return array<string, array<string, string|list<string>>>
214215
*/
215216
protected function getValidationRules(): array
216217
{

src/Controllers/RegisterController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ protected function getUserEntity(): User
143143
/**
144144
* Returns the rules that should be used for validation.
145145
*
146-
* @return string[]
146+
* @return array<string, array<string, array<string>|string>>
147+
* @phpstan-return array<string, array<string, string|list<string>>>
147148
*/
148149
protected function getValidationRules(): array
149150
{

0 commit comments

Comments
 (0)