X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Frcfeed%2FFormattedRCFeed.php;h=d0b7ae32209eb4d2826114a25c55b7bcec7f30b7;hb=c3bb16690419f3c70ebba2839e0d18925c29effa;hp=48a9f946a5b69719962debff9237424263e9dcdd;hpb=c584722cc2e3d33edae58d46c2149063b3fc6d72;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/rcfeed/FormattedRCFeed.php b/includes/rcfeed/FormattedRCFeed.php index 48a9f946a5..d0b7ae3220 100644 --- a/includes/rcfeed/FormattedRCFeed.php +++ b/includes/rcfeed/FormattedRCFeed.php @@ -52,7 +52,8 @@ abstract class FormattedRCFeed extends RCFeed { */ public function notify( RecentChange $rc, $actionComment = null ) { $params = $this->params; - /** @var $formatter RCFeedFormatter */ + /** @var RCFeedFormatter $formatter */ + // @phan-suppress-next-line PhanTypeExpectedObjectOrClassName $formatter = is_object( $params['formatter'] ) ? $params['formatter'] : new $params['formatter']; $line = $formatter->getLine( $params, $rc, $actionComment );