mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-23 16:06:45 +00:00
fix: optional parameter $args declared before required parameter $frame is implicitly treated as a required parameter" (#195)
* Fix "Optional parameter $args declared before required parameter $frame is implicitly treated as a required parameter" > Deprecated: Optional parameter $args declared before required parameter $frame is implicitly treated as a required parameter in /srv/mediawiki/1.43/extensions/TabberNeue/includes/Tabber.php on line 78 > Deprecated: Optional parameter $args declared before required parameter $frame is implicitly treated as a required parameter in /srv/mediawiki/1.43/extensions/TabberNeue/includes/TabberTransclude.php on line 72 * Update TabberTransclude.php
This commit is contained in:
parent
eaa78dbba2
commit
422c60a573
|
@ -75,7 +75,7 @@ class Tabber {
|
|||
*
|
||||
* @return string HTML
|
||||
*/
|
||||
public static function render( string $input, int $count, array $args = [], Parser $parser, PPFrame $frame ): string {
|
||||
public static function render( string $input, int $count, array $args, Parser $parser, PPFrame $frame ): string {
|
||||
$arr = explode( '|-|', $input );
|
||||
$data = [
|
||||
'id' => isset( $args['id'] ) ? $args['id'] : "tabber-$count",
|
||||
|
|
|
@ -69,7 +69,7 @@ class TabberTransclude {
|
|||
*
|
||||
* @return string HTML
|
||||
*/
|
||||
public static function render( string $input, int $count, array $args = [], Parser $parser, PPFrame $frame ): string {
|
||||
public static function render( string $input, int $count, array $args, Parser $parser, PPFrame $frame ): string {
|
||||
$selected = true;
|
||||
$arr = explode( "\n", $input );
|
||||
$data = [
|
||||
|
|
Loading…
Reference in a new issue