content: Rename $output in ContentGetParserOutputHook

This is a ParserOutput, $output is often used for OutputPage

Change-Id: I98c62140db863243e0342b9747032dc425fccc83
This commit is contained in:
Umherirrender 2023-08-14 20:23:17 +02:00
parent 68533bb622
commit 4cf69a6246
2 changed files with 4 additions and 4 deletions

View file

@ -1184,11 +1184,11 @@ class HookRunner implements
}
public function onContentGetParserOutput( $content, $title, $revId, $options,
$generateHtml, &$output
$generateHtml, &$parserOutput
) {
return $this->container->run(
'ContentGetParserOutput',
[ $content, $title, $revId, $options, $generateHtml, &$output ]
[ $content, $title, $revId, $options, $generateHtml, &$parserOutput ]
);
}

View file

@ -29,10 +29,10 @@ interface ContentGetParserOutputHook {
* the output can only depend on parameters provided to this hook function, not on global state.
* @param bool $generateHtml Whether full HTML should be generated. If false, generation of HTML
* may be skipped, but other information should still be present in the ParserOutput object.
* @param ParserOutput &$output ParserOutput to manipulate or replace
* @param ParserOutput &$parserOutput ParserOutput to manipulate or replace
* @return bool|void True or no return value to continue or false to abort
*/
public function onContentGetParserOutput( $content, $title, $revId, $options,
$generateHtml, &$output
$generateHtml, &$parserOutput
);
}