X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Frcfeed%2FFormattedRCFeed.php;h=9b5b29e2085a402366998bd440d19ab3ed6b5166;hb=d6130cac5dfe0dc00a26b3ffcae82b0b2af527c7;hp=afe900d09cff45e5ab8f012151985a7c0b5256f7;hpb=587d08c5a626f8195def9f82ee83e17c85824db8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/rcfeed/FormattedRCFeed.php b/includes/rcfeed/FormattedRCFeed.php index afe900d09c..9b5b29e208 100644 --- a/includes/rcfeed/FormattedRCFeed.php +++ b/includes/rcfeed/FormattedRCFeed.php @@ -53,6 +53,7 @@ abstract class FormattedRCFeed extends RCFeed { public function notify( RecentChange $rc, $actionComment = null ) { $params = $this->params; /** @var RCFeedFormatter $formatter */ + // @phan-suppress-next-line PhanTypeExpectedObjectOrClassName $formatter = is_object( $params['formatter'] ) ? $params['formatter'] : new $params['formatter']; $line = $formatter->getLine( $params, $rc, $actionComment ); @@ -60,6 +61,7 @@ abstract class FormattedRCFeed extends RCFeed { // @codeCoverageIgnoreStart // T109544 - If a feed formatter returns null, this will otherwise cause an // error in at least RedisPubSubFeedEngine. Not sure best to handle this. + // @phan-suppress-next-line PhanTypeMismatchReturn return; // @codeCoverageIgnoreEnd }