From 91105aa3388c77b80e4dd8ffa4143c38df6da6a8 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Mon, 18 Apr 2022 20:24:21 -0400 Subject: [PATCH] refactor: use array style on adding modules to ParserOutput String is deprecated since 1.38 (T296123) Closes #11 --- includes/TabberNeueHooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/TabberNeueHooks.php b/includes/TabberNeueHooks.php index cd51213..38ac99e 100644 --- a/includes/TabberNeueHooks.php +++ b/includes/TabberNeueHooks.php @@ -37,7 +37,7 @@ class TabberNeueHooks { * @return string HTML */ public static function renderTabber( $input, array $args, Parser $parser, PPFrame $frame ) { - $parser->getOutput()->addModules( 'ext.tabberNeue' ); + $parser->getOutput()->addModules( [ 'ext.tabberNeue' ] ); $arr = explode( "|-|", $input ); $htmlTabs = ''; foreach ( $arr as $tab ) {