X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FAbstractContent.php;h=b6211b0604c99739353fae61d30c1fd280823146;hb=8519fdd110e10180517560e2bc5ce36090fd181c;hp=65dc3bb19b1a16dd1c2d559c4d4d957d4a136951;hpb=095a2a05b2aaccff26d7b871194a4edccd092707;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/AbstractContent.php b/includes/content/AbstractContent.php index 65dc3bb19b..b6211b0604 100644 --- a/includes/content/AbstractContent.php +++ b/includes/content/AbstractContent.php @@ -43,7 +43,7 @@ abstract class AbstractContent implements Content { protected $model_id; /** - * @param string $modelId + * @param string|null $modelId * * @since 1.21 */ @@ -145,7 +145,7 @@ abstract class AbstractContent implements Content { /** * @since 1.21 * - * @param string $format + * @param string|null $format * * @return string * @@ -182,7 +182,7 @@ abstract class AbstractContent implements Content { /** * @since 1.21 * - * @param Content $that + * @param Content|null $that * * @return bool * @@ -219,9 +219,9 @@ abstract class AbstractContent implements Content { * @since 1.21 * * @param Title $title - * @param Content $old + * @param Content|null $old * @param bool $recursive - * @param ParserOutput $parserOutput + * @param ParserOutput|null $parserOutput * * @return DataUpdate[] * @@ -426,7 +426,7 @@ abstract class AbstractContent implements Content { * @param WikiPage $page * @param ParserOutput|null $parserOutput * - * @return LinksDeletionUpdate[] + * @return DeferrableUpdate[] * * @see Content::getDeletionUpdates */ @@ -501,7 +501,7 @@ abstract class AbstractContent implements Content { ParserOptions $options = null, $generateHtml = true ) { if ( $options === null ) { - $options = $this->getContentHandler()->makeParserOptions( 'canonical' ); + $options = ParserOptions::newCanonical( 'canonical' ); } $po = new ParserOutput();