Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Dec 27, 2024
1 parent 1bfe8c5 commit 65ddbe3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/Authorization/BaseAuthorizationDataBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ abstract class BaseAuthorizationDataBuilder
{

/**
* @param int|string $ownerId
* @param array<int|string, array<mixed>> $allowed
* @param array<mixed> $allPrivileges
* @param class-string $class
* @template T_OWNER of int|string
* @param T_OWNER $ownerId
* @param array<T_OWNER, array<mixed>> $allowed
* @param array<mixed> $allPrivileges
* @param class-string $class
*/
protected static function addPrivilegeToList(
string $privilege,
Expand Down Expand Up @@ -49,10 +50,11 @@ protected static function addPrivilegeToList(
}

/**
* @param int|string $ownerId
* @param array<int|string, array<mixed>> $denied
* @param array<mixed> $allPrivileges
* @param class-string $class
* @template T_OWNER of int|string
* @param T_OWNER $ownerId
* @param array<T_OWNER, array<mixed>> $denied
* @param array<mixed> $allPrivileges
* @param class-string $class
*/
protected static function removePrivilegeFromList(
string $privilege,
Expand Down

0 comments on commit 65ddbe3

Please sign in to comment.