Skip to content

Commit 22b1496

Browse files
committed
remove method exist check, phan is unsurmountable
1 parent c5dd7b8 commit 22b1496

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-menu/wpcom-admin-menu.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,9 @@ function_exists( 'wpcom_site_has_feature' ) &&
479479
*/
480480
function add_submenu_jetpack_forms() {
481481
$has_switch_class = class_exists( 'Dashboard_View_Switch' );
482-
// @phan-suppress-next-line PhanUndeclaredClassReference
483-
$has_method = method_exists( 'Dashboard_View_Switch', 'is_jetpack_forms_admin_page_available' );
484482

485-
if ( ! $has_switch_class || ! $has_method || ! Dashboard_View_Switch::is_jetpack_forms_admin_page_available() ) {
483+
// @phan-suppress-next-line PhanUndeclaredStaticMethod
484+
if ( ! $has_switch_class || ! Dashboard_View_Switch::is_jetpack_forms_admin_page_available() ) {
486485
return;
487486
}
488487

0 commit comments

Comments
 (0)