Skip to content

Releases: neonxp/MathExecutor

Support for Arrays and multiple number of function parameters

16 May 22:30
f71b77a
Compare
Choose a tag to compare
  • 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

26 Apr 20:19
c396a88
Compare
Choose a tag to compare
  • 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

22 Mar 16:20
a0ff7a7
Compare
Choose a tag to compare
  • Added varExists method
  • getVar now respects VarNotFoundHandler setting
  • Updated github actions

Better PHP 8.1 support

14 Feb 15:01
6ebe484
Compare
Choose a tag to compare

Dropping support for PHP 7.2

Fix scientific notation

06 Jan 10:00
9442a6f
Compare
Choose a tag to compare
Merge pull request #92 from ideatic/fix-scientific-notation

fix: broken support for positive exponent numbers

Unary Plus support

05 Mar 01:10
aa37abb
Compare
Choose a tag to compare
V2.1.8

Release prep (#86)

Better Unary Minus support

17 Feb 03:15
17cc5b9
Compare
Choose a tag to compare
Unary Minus (#84)

Fixed unary minus to allow a minus sign in front of functions and parentheses.

Cache Management

06 Jan 00:18
936ee5c
Compare
Choose a tag to compare

Ability not cache expression parsing and clear the cache.

More built in functions

19 Oct 23:27
761ac50
Compare
Choose a tag to compare
Additional tests Hacktoberfest (#77)

* Additional tests

Co-authored-by: diman3210 <[email protected]>

Allow setVar to null and better unit tests

16 Sep 01:31
d9eb39e
Compare
Choose a tag to compare
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]>