X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FContentHandler.php;h=9fbb72cd1b2ff8b8a4c084238c23c15ced97626a;hb=3871d05366969b1654badb034b8c6c269d662126;hp=100fa834dc40110bb7db8ded2a0972610552ed6a;hpb=8dde433d09d12f7a8a3fee0062448972b4ab41af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/ContentHandler.php b/includes/content/ContentHandler.php index 100fa834dc..9fbb72cd1b 100644 --- a/includes/content/ContentHandler.php +++ b/includes/content/ContentHandler.php @@ -1102,7 +1102,7 @@ abstract class ContentHandler { * @param Revision|Content $undoafter Must be from an earlier revision than $undo * @param bool $undoIsLatest Set true if $undo is from the current revision (since 1.32) * - * @return mixed Content on success, false on failure + * @return Content|false Content on success, false on failure */ public function getUndoContent( $current, $undo, $undoafter, $undoIsLatest = false ) { Assert::parameterType( Revision::class . '|' . Content::class, $current, '$current' ); @@ -1260,6 +1260,7 @@ abstract class ContentHandler { * @since 1.28 */ public function getFieldsForSearchIndex( SearchEngine $engine ) { + $fields = []; $fields['category'] = $engine->makeSearchFieldMapping( 'category', SearchIndexField::INDEX_TYPE_TEXT