Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Authorization/Traits/Authorizable.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ private function savePermissions(): void
}

/**
* @phpstan-param 'group'|'permission' $type
* @param GroupModel|PermissionModel $model
* @phpstan-param 'group'|'permission' $type
* @param GroupModel|PermissionModel $model
*/
private function saveGroupsOrPermissions(string $type, $model, array $cache): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function loginAction(): RedirectResponse
/**
* Returns the rules that should be used for validation.
*
* @return array<string, array<string, array<string>|string>>
* @return array<string, array<string, array<string>|string>>
* @phpstan-return array<string, array<string, string|list<string>>>
*/
protected function getValidationRules(): array
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/MagicLinkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private function recordLoginAttempt(
/**
* Returns the rules that should be used for validation.
*
* @return array<string, array<string, array<string>|string>>
* @return array<string, array<string, array<string>|string>>
* @phpstan-return array<string, array<string, string|list<string>>>
*/
protected function getValidationRules(): array
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ protected function getUserEntity(): User
/**
* Returns the rules that should be used for validation.
*
* @return array<string, array<string, array<string>|string>>
* @return array<string, array<string, array<string>|string>>
* @phpstan-return array<string, array<string, string|list<string>>>
*/
protected function getValidationRules(): array
Expand Down
2 changes: 1 addition & 1 deletion src/Models/UserIdentityModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private function checkUserId(User $user): void
* Create an identity with 6 digits code for auth action
*
* @phpstan-param array{type: string, name: string, extra: string} $data
* @param callable $codeGenerator generate secret code
* @param callable $codeGenerator generate secret code
*
* @return string secret
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Models/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected function fetchIdentities(array $data): array
* @param array $data Event $data
* @param UserIdentity[] $identities
*
* @return User[] UserId => User object
* @return User[] UserId => User object
* @phpstan-return array<int|string, User> UserId => User object
*/
private function assignIdentities(array $data, array $identities): array
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/SetupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ protected function tearDown(): void
/**
* Set MockInputOutput and user inputs.
*
* @param array<int, string> $inputs User inputs
* @phpstan-param list<string> $inputs
* @param array<int, string> $inputs User inputs
* @phpstan-param list<string> $inputs
*/
private function setMockIo(array $inputs): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/UserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ protected function tearDown(): void
/**
* Set MockInputOutput and user inputs.
*
* @param array<int, string> $inputs User inputs
* @phpstan-param list<string> $inputs
* @param array<int, string> $inputs User inputs
* @phpstan-param list<string> $inputs
*/
private function setMockIo(array $inputs): void
{
Expand Down