| @@ -24,9 +24,9 @@ | ||
| 24 | 24 | ) { |
| 25 | 25 | parent::__construct($assignmentInformationFactory); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - public function getObjectName(int|string|null $objectId, string &$typeName = ''): int|string | |
| 28 | + public function getObjectName(int|string $objectId, string &$typeName = ''): int|string | |
| 29 | 29 | { |
| 30 | 30 | $typeName = $this->generalObjectType; |
| 31 | 31 | $roles = $this->wordpress->getRoles()->role_names; |
| 32 | 32 | return (isset($roles[$objectId]) === true) ? $roles[$objectId] : $objectId; |
| @@ -34,9 +34,9 @@ | ||
| 34 | 34 | |
| 35 | 35 | public function isMember( |
| 36 | 36 | AbstractUserGroup $userGroup, |
| 37 | 37 | bool $lockRecursive, |
| 38 | - int|string|null $objectId, | |
| 38 | + int|string $objectId, | |
| 39 | 39 | ?AssignmentInformation &$assignmentInformation = null |
| 40 | 40 | ): bool { |
| 41 | 41 | $isMember = $userGroup->isObjectAssignedToGroup( |
| 42 | 42 | $this->generalObjectType, |