Skip to content

Releases: neonxp/MathExecutor

Allow setVar to null and better unit tests

16 Sep 01:31
d9eb39e

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 <javier@marinros.com>

Improved Support for NULL variables

15 Sep 00:49
f8faf3f

Choose a tag to compare

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

Better error message for setVar

27 Jul 16:27
44d72cc

Choose a tag to compare

Better setVar error message (#70)

Additional unit tests
Readme update

Dynamic Variables

27 Jul 02:19
b38893d

Choose a tag to compare

Undefined variable handler allows for delayed computation of variables. Perfect for seldom used variables that may be expensive to compute on initialization of MathExecutor.

Variables working

04 Jun 15:44
aa8ffe1

Choose a tag to compare

Fixed variables and added better exception messages

Code style and MathExecutorException namespace fix

01 Jun 00:53
ea898d7

Choose a tag to compare

MathExecutorException had incorrect namespace on setVar not being passed a numeric value.

Packagist Badge

21 May 18:51
7852fc7

Choose a tag to compare

  • Added Packagist badge to README.md
  • $variables is now private, as it was in V1

New tokenizer and executor

20 May 19:29
913cf0a

Choose a tag to compare

  • New tokenizer without regular expressions
  • Simpler code structure
  • Better performance
  • ~20% less memory usage
  • PHP >=7.1 support
  • Division by zero default is now to throw DivisionByZeroException. Call setDivisionByZeroIsZero to default to V1 behavior.

Support for negative numbers starting bracketed expressions

21 Apr 15:15
4d50343

Choose a tag to compare

Negative expression start (#60)

* Update documentation for PHPFUI/InstaDoc

* Support for negative numbers starting paren enclosed expressions

PHP 7.4 support

07 Feb 22:48
4955c63

Choose a tag to compare

  • Unary -0 support
  • PHP 7.4 support for TravisCI
  • Unit Test Cleanup
  • Documentation tweaks