Skip to content

Commit

Permalink
#9 Added UndefinedVariableException
Browse files Browse the repository at this point in the history
- Added Documentation
  • Loading branch information
matthes committed May 8, 2018
1 parent 4447c4b commit bbedaa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()}"
}
Expand Down

0 comments on commit bbedaa3

Please sign in to comment.