From db6d80d8d0f71ce10c712a8767c3cabad436f96f Mon Sep 17 00:00:00 2001 From: paladox Date: Fri, 15 Dec 2023 22:52:04 +0000 Subject: [PATCH] Fix "PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated" --- includes/Parse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Parse.php b/includes/Parse.php index 343b23e0..184fb43f 100644 --- a/includes/Parse.php +++ b/includes/Parse.php @@ -886,10 +886,10 @@ private function defineScrollVariables( $scrollVariables, Parser $parser ) { $scrollVariables = (array)$scrollVariables; foreach ( $scrollVariables as $variable => $value ) { - Variables::setVar( [ '', '', $variable, $value ] ); + Variables::setVar( [ '', '', $variable, $value ?? '' ] ); if ( defined( 'ExtVariables::VERSION' ) ) { - ExtVariables::get( $parser )->setVarValue( $variable, $value ); + ExtVariables::get( $parser )->setVarValue( $variable, $value ?? '' ); } } }