Skip to content

Commit 87740c2

Browse files
committed
docs: Remove null from handle_error() return type
No code path returns null. The implicit return after redirect_protected() is unreachable since that method is annotated as @return never.
1 parent 5b89f6e commit 87740c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-includes/class-wp-recovery-mode.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ public function is_initialized() {
161161
* @since 5.2.0
162162
*
163163
* @param array<string, mixed> $error Error details from `error_get_last()`.
164-
* @return true|WP_Error|null|never True if the error was handled and headers have already been sent.
165-
* Or the request will exit to try and catch multiple errors at once.
166-
* WP_Error if an error occurred preventing it from being handled.
167-
* Never if the redirect is protected.
164+
* @return true|WP_Error|never True if the error was handled and headers have already been sent.
165+
* Or the request will exit to try and catch multiple errors at once.
166+
* WP_Error if an error occurred preventing it from being handled.
167+
* Never if the redirect is protected.
168168
*/
169169
public function handle_error( array $error ) {
170170

0 commit comments

Comments
 (0)