From 65ddbe34703945ed4e2efe89e86052508182fd92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Barto=C5=A1?= Date: Sat, 28 Dec 2024 00:07:45 +0100 Subject: [PATCH] Fix PHPStan --- .../BaseAuthorizationDataBuilder.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Authorization/BaseAuthorizationDataBuilder.php b/src/Authorization/BaseAuthorizationDataBuilder.php index 3d40e2b..9ecf21a 100644 --- a/src/Authorization/BaseAuthorizationDataBuilder.php +++ b/src/Authorization/BaseAuthorizationDataBuilder.php @@ -13,10 +13,11 @@ abstract class BaseAuthorizationDataBuilder { /** - * @param int|string $ownerId - * @param array> $allowed - * @param array $allPrivileges - * @param class-string $class + * @template T_OWNER of int|string + * @param T_OWNER $ownerId + * @param array> $allowed + * @param array $allPrivileges + * @param class-string $class */ protected static function addPrivilegeToList( string $privilege, @@ -49,10 +50,11 @@ protected static function addPrivilegeToList( } /** - * @param int|string $ownerId - * @param array> $denied - * @param array $allPrivileges - * @param class-string $class + * @template T_OWNER of int|string + * @param T_OWNER $ownerId + * @param array> $denied + * @param array $allPrivileges + * @param class-string $class */ protected static function removePrivilegeFromList( string $privilege,