| @@ -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(mixed $term, bool &$isEmpty = null): mixed | |
| 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 | |