<commit_before><?php
/**
 * Created by PhpStorm.
 * User: matthes
 * Date: 08.05.18
 * Time: 12:54
 */

namespace Leuffen\TextTemplate;


use Throwable;

class UndefinedVariableException extends TemplateParsingException
{

    protected $triggerVarName;
    public function __construct(
        $message = "",
        $triggerVarName,
        Throwable $previous = null
    ) {
        $this->triggerVarName = $triggerVarName;
        parent::__construct($message, 0, $previous);
    }

    public function getTriggerVarName ()<commit_msg>Fixed warning in PHP8.1 - E_DEPRECATED: Optional parameter $message declared before required parameter $triggerVarName is implicitly treated as a required parameter (#21)<commit_after><?php
/**
 * Created by PhpStorm.
 * User: matthes
 * Date: 08.05.18
 * Time: 12:54
 */

namespace Leuffen\TextTemplate;


use Throwable;

class UndefinedVariableException extends TemplateParsingException
{

    protected $triggerVarName;
    public function __construct(
        $message = "",
        $triggerVarName = null,
        Throwable $previous = null
    ) {
        $this->triggerVarName = $triggerVarName;
        parent::__construct($message, 0, $previous);
    }

    public function getTriggerVarName ()
{'fraction_non_alphanumeric': 0.09903381642512077, 'fraction_numerical': 0.020933977455716585, 'mean_word_length': 3.4078014184397163, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2212878', 'n_tokens_mistral': 372, 'n_tokens_neox': 349, 'n_words': 93}