Skip to content

Commit a1adc3e

Browse files
committed
chore: fix phpstan
1 parent c3bb78e commit a1adc3e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

inc/compatibilities/hummingbird.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public function should_load_early() {
4444
* @return void
4545
*/
4646
public function add_clear_cache_action( $location ) {
47-
if ( ! class_exists( '\Hummingbird\Core\Utils' ) || ! method_exists( '\Hummingbird\Core\Utils', 'get_module' ) ) {
47+
// @phpstan-ignore-next-line - we need to check that method exists explicitly as it might change in the future.
48+
if ( ! class_exists( '\Hummingbird\Core\Utils' ) || ! method_exists( '\Hummingbird\Core\Utils', 'get_module' ) ) { // @phpstan-ignore-line
4849
return;
4950
}
5051

0 commit comments

Comments
 (0)