Skip to content

Commit 12a2bc5

Browse files
committed
Docs: Use array shape for perform_test() return type
1 parent 7d677fa commit 12a2bc5

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/wp-admin/includes/class-wp-site-health.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,17 @@ public function enqueue_scripts() {
167167
* @since 5.4.0
168168
*
169169
* @param callable $callback
170-
* @return mixed
170+
* @return array{
171+
* label: string,
172+
* status: 'good'|'recommended'|'critical',
173+
* badge: array{
174+
* label: string,
175+
* color: string,
176+
* },
177+
* description: string,
178+
* actions: string,
179+
* test: string,
180+
* }
171181
*/
172182
private function perform_test( $callback ) {
173183
/**

0 commit comments

Comments
 (0)