Improve constant evaluation and add docs
Split into evaluateDirectly() and evaluateSilently(), to be able to treat errors more gracefully. Add documentation for constant evaluation.
Showing
- README.md 3 additions, 0 deletionsREADME.md
- doc/README.md 3 additions, 0 deletionsdoc/README.md
- doc/component/Constant_expression_evaluation.markdown 115 additions, 0 deletionsdoc/component/Constant_expression_evaluation.markdown
- lib/PhpParser/ConstExprEvaluator.php 46 additions, 7 deletionslib/PhpParser/ConstExprEvaluator.php
- test/PhpParser/ConstExprEvaluatorTest.php 38 additions, 3 deletionstest/PhpParser/ConstExprEvaluatorTest.php
Please register or sign in to comment