Releases: neonxp/MathExecutor
Releases · neonxp/MathExecutor
Support for second argument to log()
PHP 8.3
PHP 8.2 and PHPUnit V10 updates
- Fixed PHP 8.2 depreciation (thanks @javiermarinros)
- Updated to PHPUnit 10 for 8.1 and 8.2
Not(!) logical operator and median function
- Added support for logical NOT(!) operator. Thanks to @fatihkizmaz
- Added median function. Thanks to @fatihkizmaz
- Dropped support for PHP 7.4
- Updated depreciations to unit test failures
- Updated PHPCSFixer settings.
PHP 8.2 Support
- Minor formatting issues in code
- Updated unit test and github actions for PHP 8.2
IncorrectNumberOfFunctionParametersException on too many args
Throw an IncorrectNumberOfFunctionParametersException if a function gets more arguments than it supports.
Thanks to @madman-81
BCMath and mod operator support
Arbitrary Precision Math functions. Call useBCMath($decimalPoints) to activate.
- Support for % operator (mod)
Thanks to @tobiashowitz for suggesting BCMath support
Better invalid expression detection
- Space should end numbers and string and not concatenate
Support for escaping quotes in strings
- Strings with quotes can now be escaped in the same way as PHP.
Thanks to @fatihkizmaz Fatih Kızmaz for this release.
Support for Arrays and multiple number of function parameters
- Full support for arrays in expressions ([3,7,13] or array(2,4,8))
- Support for arrays as parameters to functions like min and max
- Support for variable number of function parameters
Thanks to @fatihkizmaz Fatih Kızmaz for this release.