From 91efc7f98e7dd9bd82eabc88bb88ecc54e2e6100 Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Mon, 7 Oct 2024 11:41:08 +0200 Subject: [PATCH] Document ParserOutput::resetParseStartTime() contract a bit more See Wikibase change I6bba35cea2. Bug: T376433 Change-Id: Idb6fea7530839f2a769d12b18e6c6703f9e86636 --- includes/content/ContentHandler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/content/ContentHandler.php b/includes/content/ContentHandler.php index 953b8ae6ae5..4391906a133 100644 --- a/includes/content/ContentHandler.php +++ b/includes/content/ContentHandler.php @@ -1753,6 +1753,9 @@ abstract class ContentHandler { * @param Content $content * @param ContentParseParams $cpoParams * @param ParserOutput &$output The output object to fill (reference). + * Most implementations should modify the output object passed in here; + * if you choose to replace it with a fresh object instead, + * make sure you call {@link ParserOutput::resetParseStartTime()} on it. */ protected function fillParserOutput( Content $content,