| @@ -145,13 +145,10 @@ | ||
| 145 | 145 | * @return AbstractUserGroup[] |
| 146 | 146 | * @throws UserGroupTypeException |
| 147 | 147 | * @throws Exception |
| 148 | 148 | */ |
| 149 | - public function getUserGroupsForObject( | |
| 150 | - string $objectType, | |
| 151 | - int|string|null $objectId, | |
| 152 | - bool $ignoreDates = false | |
| 153 | - ): array { | |
| 149 | + public function getUserGroupsForObject(string $objectType, int|string $objectId, bool $ignoreDates = false): array | |
| 150 | + { | |
| 154 | 151 | if ($this->objectHandler->isValidObjectType($objectType) === false) { |
| 155 | 152 | return []; |
| 156 | 153 | } |
| 157 | 154 | |
| @@ -251,9 +248,9 @@ | ||
| 251 | 248 | * @throws UserGroupTypeException |
| 252 | 249 | */ |
| 253 | 250 | public function getFilteredUserGroupsForObject( |
| 254 | 251 | string $objectType, |
| 255 | - int|string|null $objectId, | |
| 252 | + int|string $objectId, | |
| 256 | 253 | bool $ignoreDates = false |
| 257 | 254 | ): array { |
| 258 | 255 | $userGroups = $this->getUserGroupsForObject($objectType, $objectId, $ignoreDates); |
| 259 | 256 | $userUserGroups = $this->getUserGroupsForUser() + $this->getDynamicUserGroups(); |