Skip to content

Commit 20efde6

Browse files
committed
PHPStan: add @phpstan-ignore if.alwaysFalse annotations
1 parent a44c739 commit 20efde6

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/wp-admin/install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @subpackage Administration
77
*/
88

9-
// Confidence check.
9+
// @phpstan-ignore if.alwaysFalse (Confidence check)
1010
if ( false ) {
1111
?>
1212
<!DOCTYPE html>

src/wp-includes/load.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@ function wp_start_object_cache() {
859859
if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
860860
require_once WP_CONTENT_DIR . '/object-cache.php';
861861

862+
// @phpstan-ignore if.alwaysFalse
862863
if ( function_exists( 'wp_cache_init' ) ) {
863864
wp_using_ext_object_cache( true );
864865
}

src/wp-login.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ function login_footer( $input_id = '' ) {
408408
wp_dropdown_languages( apply_filters( 'login_language_dropdown_args', $args ) );
409409
?>
410410

411+
<?php /** @phpstan-ignore-next-line if.alwaysFalse (globals can change value) */ ?>
411412
<?php if ( $interim_login ) { ?>
412413
<input type="hidden" name="interim-login" value="1" />
413414
<?php } ?>

0 commit comments

Comments
 (0)