Skip to content

Commit 4d7a459

Browse files
committed
Suppres false positive for phpstan
1 parent ef1b4b4 commit 4d7a459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ static function ( int $level, string $message, ?string $file = null, ?int $line
976976
}
977977

978978
// Display a caught exception as an error since it prevents any of the output buffer filters from applying.
979-
if ( $did_just_catch_exception ) {
979+
if ( $did_just_catch_exception ) { // @phpstan-ignore if.alwaysFalse (The variable is set in the catch block below.)
980980
$level = E_USER_ERROR;
981981
}
982982

0 commit comments

Comments
 (0)