Releases: neonxp/MathExecutor
Releases · neonxp/MathExecutor
Removed virtual directory
No code changes
Logical Operators and more math functions
Version 1.1 (#51) * Update README.md and more function support
PHPUnit 7.0 support
Support for PHP 7.1 and higher. Will still work with 5.6 for now.
Better support for unary minus
Recommended Upgrade
- Better unary minus support
- Updated unit tests
- Updated docs
Fixed comma operator
Merge pull request #44 from phpfui/master * Fixed comma operator Added unit tests for expressions in function arguments. Changed array_push to $var[] = native code. * Fixed merge error * Fixed typo in constant
Bug fixes
Fixed function parameter order (#42) * Fixed parsing for () * sync (#5) * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36) * Added simple coc (#37) * Added simple coc * Fix * Replaceable operators (#38) * Updated from NeonXP/MathExecutor * Fixed function in () block issue * Fixing typos in and clarifying documentation. * Syncing from origin (#3) * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36) * Allow for operators to be replaced based on regex expression * Fix md typo (#39) * Updated from NeonXP/MathExecutor * Fixed function in () block issue * Fixing typos in and clarifying documentation. * Syncing from origin (#3) * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36) * Syncing to origin (#4) * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36) * Added simple coc (#37) * Added simple coc * Fix * Replaceable operators (#38) * Updated from NeonXP/MathExecutor * Fixed function in () block issue * Fixing typos in and clarifying documentation. * Syncing from origin (#3) * Documentation fixes (#34) Fixing typos in and clarifying documentation. * MathExecutor allow override default operators, functions and vars (#36) * Allow for operators to be replaced based on regex expression * \\ instead of \ * Update README.md Some small fixes * Fix single quotes parsing (#41) * Fix single quotes parsing Fix e-mails Some small fixes * Mistake in test * More PHP versions * Update README.md Deleted `dev` branch * Fixed function parameter order Corrected $places default value for addFunction to match TokenFactory Added function order test and put expected order first in assertEquals If else blocks in calculator Updated docs
Better extensibility
Allow for better customization when extending MathExecutor. Can be used to implement operator overloading for example.
Updated documentation and added a COC.
Correct parsing of functions in () blocks
This is a recommended release. Prior versions may not work 100% with functions.
Division by zero exception support
MathExecutor now allows for exceptions to be thrown on division be zero. Previous and current default behavior is it return 0 if dividing by zero.
Stable branch
All development in 'dev' branch.