PluginProbe
User Access Manager / 2.3.2
User Access Manager v2.3.2
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/Controller/Frontend/TermController.php +4 -4 2.3.162.3.2 View file →
@@ -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