| @@ -29,15 +29,14 @@ | ||
| 29 | 29 | /** |
| 30 | 30 | * @throws Exception |
| 31 | 31 | */ |
| 32 | 32 | private function setUserGroups( |
| 33 | - array $filteredUserGroups, | |
| 34 | - string $objectType, | |
| 35 | - int|string|null $objectId, | |
| 36 | - array $addUserGroups, | |
| 37 | - array $removeUserGroups | |
| 33 | + array $filteredUserGroups, | |
| 34 | + string $objectType, | |
| 35 | + int|string $objectId, | |
| 36 | + array $addUserGroups, | |
| 37 | + array $removeUserGroups | |
| 38 | 38 | ): void { |
| 39 | - /** @var UserGroup $userGroup */ | |
| 40 | 39 | foreach ($filteredUserGroups as $groupId => $userGroup) { |
| 41 | 40 | if (isset($removeUserGroups[$groupId]) === true) { |
| 42 | 41 | $userGroup->removeObject($objectType, $objectId); |
| 43 | 42 | } |
| @@ -58,9 +57,9 @@ | ||
| 58 | 57 | /** |
| 59 | 58 | * @throws UserGroupAssignmentException |
| 60 | 59 | * @throws UserGroupTypeException |
| 61 | 60 | */ |
| 62 | - private function setDynamicGroups(string $objectType, int|string|null $objectId, array $addDynamicUserGroups): void | |
| 61 | + private function setDynamicGroups(string $objectType, int|string $objectId, array $addDynamicUserGroups): void | |
| 63 | 62 | { |
| 64 | 63 | foreach ($addDynamicUserGroups as $dynamicUserGroupKey => $addDynamicUserGroup) { |
| 65 | 64 | $dynamicUserGroupData = explode('|', $dynamicUserGroupKey); |
| 66 | 65 | |
| @@ -85,9 +84,9 @@ | ||
| 85 | 84 | /** |
| 86 | 85 | * @throws UserGroupTypeException |
| 87 | 86 | * @throws Exception |
| 88 | 87 | */ |
| 89 | - private function setDefaultGroups(array $filteredUserGroups, string $objectType, int|string|null $objectId): void | |
| 88 | + private function setDefaultGroups(array $filteredUserGroups, string $objectType, int|string $objectId): void | |
| 90 | 89 | { |
| 91 | 90 | /** |
| 92 | 91 | * @var UserGroup[] $userGroupsToCheck |
| 93 | 92 | */ |
| @@ -111,9 +110,9 @@ | ||
| 111 | 110 | * @throws Exception |
| 112 | 111 | */ |
| 113 | 112 | public function assignObjectToUserGroups( |
| 114 | 113 | string $objectType, |
| 115 | - int|string|null $objectId, | |
| 114 | + int|string $objectId, | |
| 116 | 115 | array $addUserGroups, |
| 117 | 116 | array $removeUserGroups, |
| 118 | 117 | array $addDynamicUserGroups |
| 119 | 118 | ): void { |