| @@ -61,9 +61,9 @@ | ||
| 61 | 61 | |
| 62 | 62 | return $this->postObjectHideConfig; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - private function getAllPostForTerm(string $termType, int|string|null $termId): array | |
| 65 | + private function getAllPostForTerm(string $termType, int|string $termId): array | |
| 66 | 66 | { |
| 67 | 67 | $fullTerms = [$termId => $termType]; |
| 68 | 68 | $termTreeMap = $this->objectMapHandler->getTermTreeMap(); |
| 69 | 69 | |
| @@ -87,9 +87,9 @@ | ||
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | 89 | * @throws UserGroupTypeException |
| 90 | 90 | */ |
| 91 | - private function getVisibleElementsCount(string $termType, int|string|null $termId): int | |
| 91 | + private function getVisibleElementsCount(string $termType, int|string $termId): int | |
| 92 | 92 | { |
| 93 | 93 | $key = $termType . '|' . $termId; |
| 94 | 94 | |
| 95 | 95 | if (isset($this->visibleElementsCount[$key]) === false) { |
| @@ -152,9 +152,9 @@ | ||
| 152 | 152 | /** |
| 153 | 153 | * @throws UserGroupTypeException |
| 154 | 154 | * @throws Exception |
| 155 | 155 | */ |
| 156 | - private function processTerm(mixed $term, ?bool &$isEmpty = null): mixed | |
| 156 | + private function processTerm(bool|WP_Term|stdClass $term, bool &$isEmpty = null): WP_Term|stdClass|bool | |
| 157 | 157 | { |
| 158 | 158 | $isEmpty = false; |
| 159 | 159 | |
| 160 | 160 | if (($term instanceof WP_Term) === false |
| @@ -180,9 +180,9 @@ | ||
| 180 | 180 | |
| 181 | 181 | /** |
| 182 | 182 | * @throws UserGroupTypeException |
| 183 | 183 | */ |
| 184 | - public function showTerm(mixed $term): mixed | |
| 184 | + public function showTerm(WP_Term|stdClass $term): WP_Term|stdClass|bool | |
| 185 | 185 | { |
| 186 | 186 | return $this->processTerm($term); |
| 187 | 187 | } |
| 188 | 188 | |