X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FTextContent.php;h=54a57a55e62e5e7af480715fbddf50839c42035a;hb=28d9e60182f33c507147f48b15566c653b890a3c;hp=71dd35c84d65087c99c3fb5bfd2100dca99d14da;hpb=f79c9e6ca3c02090d6d56eaecb2ab90d4198b2b9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/TextContent.php b/includes/content/TextContent.php index 71dd35c84d..54a57a55e6 100644 --- a/includes/content/TextContent.php +++ b/includes/content/TextContent.php @@ -155,7 +155,9 @@ class TextContent extends AbstractContent { * @return string|bool The raw text, or false if the conversion failed. */ public function getWikitextForTransclusion() { + /** @var WikitextContent $wikitext */ $wikitext = $this->convert( CONTENT_MODEL_WIKITEXT, 'lossy' ); + '@phan-var WikitextContent $wikitext'; if ( $wikitext ) { return $wikitext->getText(); @@ -214,7 +216,8 @@ class TextContent extends AbstractContent { */ public function diff( Content $that, Language $lang = null ) { $this->checkModelID( $that->getModel() ); - + /** @var self $that */ + '@phan-var self $that'; // @todo could implement this in DifferenceEngine and just delegate here? if ( !$lang ) {