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()}" }