refactor: use array style on adding modules to ParserOutput

String is deprecated since 1.38 (T296123)

Closes #11
This commit is contained in:
alistair3149 2022-04-18 20:24:21 -04:00
parent 4ef6221d6c
commit 91105aa338
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -37,7 +37,7 @@ class TabberNeueHooks {
* @return string HTML * @return string HTML
*/ */
public static function renderTabber( $input, array $args, Parser $parser, PPFrame $frame ) { public static function renderTabber( $input, array $args, Parser $parser, PPFrame $frame ) {
$parser->getOutput()->addModules( 'ext.tabberNeue' ); $parser->getOutput()->addModules( [ 'ext.tabberNeue' ] );
$arr = explode( "|-|", $input ); $arr = explode( "|-|", $input );
$htmlTabs = ''; $htmlTabs = '';
foreach ( $arr as $tab ) { foreach ( $arr as $tab ) {