From 44d78203da59527752d40dfee6410ecaaee99341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mystik=20Jon=C3=A1=C5=A1?= Date: Thu, 24 Nov 2022 14:09:29 +0100 Subject: [PATCH] Fixed warning in PHP8.1 - E_DEPRECATED: Optional parameter $message declared before required parameter $triggerVarName is implicitly treated as a required parameter (#21) --- src/UndefinedVariableException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UndefinedVariableException.php b/src/UndefinedVariableException.php index 1a76f30..eb625ff 100644 --- a/src/UndefinedVariableException.php +++ b/src/UndefinedVariableException.php @@ -17,7 +17,7 @@ class UndefinedVariableException extends TemplateParsingException protected $triggerVarName; public function __construct( $message = "", - $triggerVarName, + $triggerVarName = null, Throwable $previous = null ) { $this->triggerVarName = $triggerVarName;