From bbedaa3618d40d6b05e25a84f18d3a957f265b22 Mon Sep 17 00:00:00 2001 From: matthes Date: Tue, 8 May 2018 14:20:43 +0200 Subject: [PATCH] #9 Added UndefinedVariableException - Added Documentation --- docs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 1d3f4be..9bc8cbf 100644 --- a/docs/README.md +++ b/docs/README.md @@ -280,8 +280,8 @@ To improve debugging, you can switch this behaviour by setting `$softFail` to ```php try { $tt = new TextTemplate("{=someUndefinedName}"); - $parser->apply([], false); - // ^^^^^ + echo $tt->apply([], false); + // ^^^^^ } catch (UndefinedVariableExceptions $e) { echo "UndefinedVariable: {$e->getTriggerVarName()}" }