Skip to content

Commit 6d7f578

Browse files
committed
Revert reportUnmatchedIgnoredErrors and ignoring isset.variable in favor of local baseline
1 parent 18ecd38 commit 6d7f578

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

phpstan.neon.dist

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ includes:
1515
parameters:
1616
# https://phpstan.org/user-guide/rule-levels
1717
level: 0
18-
19-
# Allow ignoring errors for stricter levels.
20-
reportUnmatchedIgnoredErrors: false
18+
reportUnmatchedIgnoredErrors: true
2119

2220
ignoreErrors:
2321
# Level 0:

src/wp-includes/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ function load_template( $_template_file, $load_once = true, $args = array() ) {
795795
extract( $wp_query->query_vars, EXTR_SKIP );
796796
}
797797

798-
if ( isset( $s ) ) { // @phpstan-ignore isset.variable (It's extracted from query vars.)
798+
if ( isset( $s ) ) {
799799
$s = esc_attr( $s ); // @phpstan-ignore variable.undefined (It's extracted from query vars.)
800800
}
801801

0 commit comments

Comments
 (0)