| @@ -196,9 +196,9 @@ | ||
| 196 | 196 | |
| 197 | 197 | /** |
| 198 | 198 | * @throws UserGroupTypeException |
| 199 | 199 | */ |
| 200 | - private function dieOnNoAccess(string $objectType, int|string|null $objectId): void | |
| 200 | + private function dieOnNoAccess(string $objectType, int|string $objectId): void | |
| 201 | 201 | { |
| 202 | 202 | if ($this->accessHandler->checkObjectAccess($objectType, $objectId) === false) { |
| 203 | 203 | $this->wordpress->wpDie(TXT_UAM_NO_RIGHTS_MESSAGE, TXT_UAM_NO_RIGHTS_TITLE, ['response' => 403]); |
| 204 | 204 | } |
| @@ -230,9 +230,9 @@ | ||
| 230 | 230 | * @throws UserGroupTypeException |
| 231 | 231 | */ |
| 232 | 232 | private function getAddRemoveGroups( |
| 233 | 233 | string $objectType, |
| 234 | - int|string|null $objectId, | |
| 234 | + int|string $objectId, | |
| 235 | 235 | ?array &$addUserGroups = [], |
| 236 | 236 | ?array &$removeUserGroups = [] |
| 237 | 237 | ): void { |
| 238 | 238 | $groupsToChange = (array) $this->getRequestParameter(self::DEFAULT_GROUPS_FORM_NAME, []); |
| @@ -263,9 +263,9 @@ | ||
| 263 | 263 | * @throws UserGroupTypeException |
| 264 | 264 | */ |
| 265 | 265 | public function saveObjectData( |
| 266 | 266 | string $objectType, |
| 267 | - int|string|null $objectId, | |
| 267 | + int|string $objectId, | |
| 268 | 268 | ?array $addUserGroups = null, |
| 269 | 269 | bool $force = false |
| 270 | 270 | ): void { |
| 271 | 271 | $isUpdateForm = (bool) $this->getRequestParameter(self::UPDATE_GROUPS_FORM_NAME, false) === true |
| @@ -289,9 +289,9 @@ | ||
| 289 | 289 | } |
| 290 | 290 | } |
| 291 | 291 | } |
| 292 | 292 | |
| 293 | - public function removeObjectData(string $objectType, int|string|null $id): void | |
| 293 | + public function removeObjectData(string $objectType, int|string $id): void | |
| 294 | 294 | { |
| 295 | 295 | $this->database->delete( |
| 296 | 296 | $this->database->getUserGroupToObjectTable(), |
| 297 | 297 | [ |
| @@ -308,12 +308,12 @@ | ||
| 308 | 308 | /** |
| 309 | 309 | * @throws UserGroupTypeException |
| 310 | 310 | */ |
| 311 | 311 | public function showGroupSelectionForm( |
| 312 | - string $objectType, | |
| 313 | - int|string|null $objectId, | |
| 312 | + string $objectType, | |
| 313 | + int|string $objectId, | |
| 314 | 314 | $formName = null, |
| 315 | - ?array $objectUserGroups = null | |
| 315 | + array $objectUserGroups = null | |
| 316 | 316 | ): string { |
| 317 | 317 | $this->setObjectInformation($objectType, $objectId, $objectUserGroups); |
| 318 | 318 | |
| 319 | 319 | $this->groupsFromName = $formName; |
| @@ -325,9 +325,9 @@ | ||
| 325 | 325 | |
| 326 | 326 | /** |
| 327 | 327 | * @throws UserGroupTypeException |
| 328 | 328 | */ |
| 329 | - public function getGroupColumn(string $objectType, int|string|null $objectId): string | |
| 329 | + public function getGroupColumn(string $objectType, int|string $objectId): string | |
| 330 | 330 | { |
| 331 | 331 | $this->setObjectInformation($objectType, $objectId); |
| 332 | 332 | return $this->getIncludeContents('ObjectColumn.php'); |
| 333 | 333 | } |