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:
paladox 2024-11-21 17:42:47 +00:00 committed by GitHub
parent eaa78dbba2
commit 422c60a573
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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 = [