From 01c2d3c2b1f6189ef370d7f1ba4b154b23813a3b Mon Sep 17 00:00:00 2001 From: Karen Attfield Date: Thu, 24 Oct 2024 14:50:14 +0100 Subject: [PATCH] Fix Phan baseline reported issue by changing return type on function --- projects/plugins/jetpack/.phan/baseline.php | 1 - .../blocks/contact-info/class-jetpack-contact-info-block.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/plugins/jetpack/.phan/baseline.php b/projects/plugins/jetpack/.phan/baseline.php index 73b08dec3ed91..b8589a544e1db 100644 --- a/projects/plugins/jetpack/.phan/baseline.php +++ b/projects/plugins/jetpack/.phan/baseline.php @@ -178,7 +178,6 @@ 'extensions/blocks/blog-stats/blog-stats.php' => ['PhanTypeMismatchReturnProbablyReal'], 'extensions/blocks/blogroll/blogroll-item/blogroll-item.php' => ['PhanPluginDuplicateConditionalNullCoalescing'], 'extensions/blocks/calendly/calendly.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturnProbablyReal'], - 'extensions/blocks/contact-info/class-jetpack-contact-info-block.php' => ['PhanTypeMismatchReturn'], 'extensions/blocks/cookie-consent/cookie-consent.php' => ['PhanParamTooMany'], 'extensions/blocks/donations/donations.php' => ['PhanTypeMismatchArgument'], 'extensions/blocks/gif/gif.php' => ['PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeMismatchReturnProbablyReal'], diff --git a/projects/plugins/jetpack/extensions/blocks/contact-info/class-jetpack-contact-info-block.php b/projects/plugins/jetpack/extensions/blocks/contact-info/class-jetpack-contact-info-block.php index 3e3647953ce39..9ec393ac0b548 100644 --- a/projects/plugins/jetpack/extensions/blocks/contact-info/class-jetpack-contact-info-block.php +++ b/projects/plugins/jetpack/extensions/blocks/contact-info/class-jetpack-contact-info-block.php @@ -111,7 +111,7 @@ public static function render_address( $attr, $content ) { * @param array $attr Array containing the block attributes. * @param array $omit Array containing the block attributes that we ignore. * - * @return string + * @return bool */ public static function has_attributes( $attr, $omit = array() ) { foreach ( $attr as $attribute => $value ) {