Skip to content

Commit 2adc4ba

Browse files
committed
Ignore PHPStan errors for filter usage
1 parent ab1ff61 commit 2adc4ba

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/WP_CLI/PluginUpgrader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function install_package( $args = array() ) {
1919
return $will_invalidate;
2020
};
2121

22+
// @phpstan-ignore WPCompat.filterNotAvailable.wpopcacheinvalidatefile
2223
add_filter( 'wp_opcache_invalidate_file', $track_files, 10, 2 );
2324

2425
$result = parent::install_package( $args );

src/WP_CLI/ThemeUpgrader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function install_package( $args = array() ) {
1919
return $will_invalidate;
2020
};
2121

22+
// @phpstan-ignore WPCompat.filterNotAvailable.wpopcacheinvalidatefile
2223
add_filter( 'wp_opcache_invalidate_file', $track_files, 10, 2 );
2324

2425
$result = parent::install_package( $args );

0 commit comments

Comments
 (0)