Skip to content

Commit

Permalink
Fix Phan complainig
Browse files Browse the repository at this point in the history
  • Loading branch information
gmjuhasz committed Feb 6, 2025
1 parent bea08ac commit 78974f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/packages/publicize/src/class-publicize-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public static function assert_is_wpcom( $method ) {
* @return bool
*/
public static function has_new_module_endpoint() {
// @phan-suppress-next-line PhanTypeMismatchArgumentNullableInternal - Phan thinks JETPACK__VERSION is not a string (it is).
return class_exists( 'Jetpack' ) && defined( 'JETPACK__VERSION' ) && ( version_compare( JETPACK__VERSION, '14.3', '>=' ) );
}
}

0 comments on commit 78974f5

Please sign in to comment.