Merge "Make InputBoxHooks::render() non-static"

This commit is contained in:
jenkins-bot 2021-12-13 10:59:10 +00:00 committed by Gerrit Code Review
commit 2471c32621

View file

@ -48,7 +48,7 @@ class InputBoxHooks implements
*/
public function onParserFirstCallInit( $parser ) {
// Register the hook with the parser
$parser->setHook( 'inputbox', 'MediaWiki\Extension\InputBox\InputBoxHooks::render' );
$parser->setHook( 'inputbox', [ $this, 'render' ] );
}
/**
@ -78,7 +78,7 @@ class InputBoxHooks implements
* @param Parser $parser
* @return string
*/
public static function render( $input, $args, Parser $parser ) {
public function render( $input, $args, Parser $parser ) {
// Create InputBox
$inputBox = new InputBox( $parser );