Releases: neonxp/MathExecutor
Releases · neonxp/MathExecutor
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.
Support for math on objects
- Support for math on custom objects
- Support for validating variable names, types and values
- Change private properties to protected for better method overriding
Thanks to @mrm Matthijs Meulenbrug for this release.
varExists and better VarNotFound handling
- Added varExists method
- getVar now respects VarNotFoundHandler setting
- Updated github actions
Better PHP 8.1 support
Dropping support for PHP 7.2
Fix scientific notation
Merge pull request #92 from ideatic/fix-scientific-notation fix: broken support for positive exponent numbers
Unary Plus support
V2.1.8 Release prep (#86)
Better Unary Minus support
Unary Minus (#84) Fixed unary minus to allow a minus sign in front of functions and parentheses.
Cache Management
Ability not cache expression parsing and clear the cache.
More built in functions
Additional tests Hacktoberfest (#77) * Additional tests Co-authored-by: diman3210 <[email protected]>
Allow setVar to null and better unit tests
Improved unit tests (#74) * Variable fixes (#67) * Reproduce if throws UnknownOperatorException * Fix variable detection * Adding IncorrectNumberOfFunctionParametersException * Removing tabs * Better exception message text * Handler for not found variables (#68) * Added handler to define not found variables Added support for string variables Fixed strings and ints comparison error * Check if variables have scalar types (int, float, string and bool) Better $onVarNotFound logic * Release prep (#69) * String comparison unit tests * getVars and getFunctions sanity checks * Add dynamic variable documentation * Better setVar error message (#70) Additional unit tests Readme update * Improved support for null variables (#72) * Added handler to define not found variables Added support for string variables Fixed strings and ints comparison error * Check if variables have scalar types (int, float, string and bool) Better $onVarNotFound logic * Better support for null variables * Better support for null variables * Better support for null variables * Allow null values in `setVar` method (#73) * Added handler to define not found variables Added support for string variables Fixed strings and ints comparison error * Check if variables have scalar types (int, float, string and bool) Better $onVarNotFound logic * Better support for null variables * Better support for null variables * Better support for null variables * Allow null values in `setVar` method * Better unit testing Co-authored-by: Javier Marín <[email protected]>