PluginProbe
User Access Manager / 2.3.2
User Access Manager v2.3.2
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/UserGroup/UserGroupAssignmentHandler.php +8 -9 2.3.132.3.2 View file →
@@ -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 {