Skip to content

Commit

Permalink
Fixed warning in PHP8.1 - E_DEPRECATED: Optional parameter $message d…
Browse files Browse the repository at this point in the history
…eclared before required parameter $triggerVarName is implicitly treated as a required parameter (#21)
  • Loading branch information
MartinMystikJonas authored Nov 24, 2022
1 parent 83d7b2b commit 44d7820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UndefinedVariableException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class UndefinedVariableException extends TemplateParsingException
protected $triggerVarName;
public function __construct(
$message = "",
$triggerVarName,
$triggerVarName = null,
Throwable $previous = null
) {
$this->triggerVarName = $triggerVarName;
Expand Down

0 comments on commit 44d7820

Please sign in to comment.