aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Adding varExists method and support for undefined var handler in getVar (#96)V2.1.112.0.4Bruce Wells2022-03-219-51/+79
| | | | | | | | | | | | | | | * Added varExists method * getVar now respects VarNotFoundHandler setting * Use local version of PHP-CS-Fixer Instead of hard coded version from github actions * Fixing actions * Fixing actions * Dropping testing for 7.3, as it is no longer supported
* PHP 8.1 support (#94)V2.1.10Mirosław Sztorc2022-02-142-3/+9
| | | | | | | | | * php 8.1 * upgrading phpunit * removing php7.2 support * removing php7.2 from test matrix
* Merge pull request #92 from ideatic/fix-scientific-notationV2.1.9Alex2022-01-062-1/+9
|\ | | | | fix: broken support for positive exponent numbers
| * fix: broken support for positive exponent numbersJavier Marín2022-01-052-1/+9
|/
* PhpStan support, consts visibilty and name for tokens (#89)Javier Marín2021-07-147-35/+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 * Better support for null variables * Better support for null variables * Better support for null variables * Allow null values in `setVar` method * Support for unary positive operator * Add PhpStan config file Fix PhpStan warnings Set consts visibility Add name info to variable tokens for easier debugging Co-authored-by: Javier Marín <contacto@ideatic.net>
* Release prep (#86)V2.1.8Bruce Wells2021-03-052-16/+16
|
* Merge branch 'master' into masterBruce Wells2021-03-051-1/+1
|\
| * Merge branch 'master' into masterBruce Wells2020-09-160-0/+0
| |\
| * | Better unit testingBruce Wells2020-09-161-10/+10
| | |
| * | Allow null values in `setVar` method (#73)Javier Marín2020-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * | Improved support for null variables (#72)Javier Marín2020-09-163-25/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 setVar error message (#70)Bruce Wells2020-09-163-7/+59
| | | | | | | | | | | | Additional unit tests Readme update
| * | Release prep (#69)Bruce Wells2020-09-162-4/+51
| | | | | | | | | | | | | | | | | | | | | * String comparison unit tests * getVars and getFunctions sanity checks * Add dynamic variable documentation
| * | Handler for not found variables (#68)Javier Marín2020-09-164-14/+81
| | | | | | | | | | | | | | | | | | | | | | | | * 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
| * | Variable fixes (#67)Bruce Wells2020-09-166-11/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reproduce if throws UnknownOperatorException * Fix variable detection * Adding IncorrectNumberOfFunctionParametersException * Removing tabs * Better exception message text
| * | Merge pull request #4 from neonxp/masterBruce Wells2020-06-0311-40/+56
| |\ \ | | | | | | | | Latest from master
* | | | Support for unary positive expressions (#85)Javier Marín2021-03-053-23/+41
| | | | | | | | | | | | * Support for unary positive operator
* | | | Unary Minus (#84)V2.1.7Bruce Wells2021-02-173-31/+66
| | | | | | | | | | | | Fixed unary minus to allow a minus sign in front of functions and parentheses.
* | | | Improve autoloading, asssertions and CI trigger (#79)V2.1.6Chun-Sheng, Li2021-01-062-3/+8
| | | |
* | | | CI - new workflow for GitHub actions (#82)Mirosław Sztorc2021-01-062-14/+34
| | | | | | | | | | | | | | | | | | | | * php>=7.2 * CI workflow - added php matrix
* | | | Cache-control improvements (#81)Mirosław Sztorc2021-01-062-5/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cache-control improvements * Update src/NXP/MathExecutor.php yeah, you're right. Co-authored-by: Alexander Kiryukhin <a.kiryukhin@mail.ru> * Update MathExecutor.php braces qfix * Update MathExecutor.php Co-authored-by: Alexander Kiryukhin <a.kiryukhin@mail.ru>
* | | | PHPUnit 8 or higher for PHP 8.0 support (#78)Bruce Wells2020-11-281-1/+1
| | | |
* | | | Additional tests Hacktoberfest (#77)V2.1.5Bruce Wells2020-10-201-8/+30
| | | | | | | | | | | | | | | | | | | | * Additional tests Co-authored-by: diman3210 <diman-3210@mail.ru>
* | | | add new functions and aliases to the old functions (#76)diman32102020-10-203-7/+117
| | | | | | | | | | | | | | | | | | | | * add new functions and aliases to the old functions * add tests for new functions
* | | | Improved unit tests (#74)V2.1.4Bruce Wells2020-09-161-10/+10
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | | Allow null values in `setVar` method (#73)V2.1.3Javier Marín2020-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | Improved support for null variables (#72)V2.1.2Javier Marín2020-09-153-25/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 setVar error message (#70)V2.1.1Bruce Wells2020-07-273-7/+59
| | | | | | | | | | | | Additional unit tests Readme update
* | | Release prep (#69)V2.1.0Bruce Wells2020-07-272-4/+51
| | | | | | | | | | | | | | | | | | | | | * String comparison unit tests * getVars and getFunctions sanity checks * Add dynamic variable documentation
* | | Handler for not found variables (#68)Javier Marín2020-07-264-14/+81
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | Variable fixes (#67)V2.0.3Bruce Wells2020-06-046-11/+97
| |/ |/| | | | | | | | | | | | | | | | | | | * Reproduce if throws UnknownOperatorException * Fix variable detection * Adding IncorrectNumberOfFunctionParametersException * Removing tabs * Better exception message text
* | Code style fixes & Github Actions (#65)V2.0.2Alexander Kiryukhin2020-06-0111-39/+55
| | | | | | | | | | | | | | | | | | | | | | | | * Code style fixes Up phpunit to v8 New CI * Remove travis * Fix CI badge * Added php-cs-fixer action
* | Packagist tag (#64)V2.0.1Bruce Wells2020-05-212-2/+2
|/ | | | | * $variables should be private * Add Packagist tag
* Merge pull request #63 from phpfui/neonxp-ngv2.0.0Alexander Kiryukhin2020-05-207-41/+157
|\ | | | | Update parameters and add back functions
| * Merge branch 'master' into neonxp-ngBruce Wells2020-05-203-5/+3
| |\ | |/ |/|
* | WIP: New generation (#62)Alexander Kiryukhin2020-05-2038-1909/+777
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Massive refactoring More clean structure Parsing without regular expressions * Cleanup unused imports * Fix version string for Travis * 7.1 downgrade * Fix readme
| * Null parameters allowedBruce Wells2020-05-201-1/+1
| |
| * Adding setVars back inBruce Wells2020-05-201-0/+19
| |
| * Update readme.mdBruce Wells2020-05-201-8/+10
| |
| * setDivisionByZeroIsZeroBruce Wells2020-05-202-7/+18
| |
| * Private membersBruce Wells2020-05-201-4/+90
| |
| * typed parameters and return typesBruce Wells2020-05-205-23/+23
| |
| * Merge branch 'ng' of https://github.com/neonxp/MathExecutor into neonxp-ngBruce Wells2020-05-2038-1909/+777
| |\ | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # src/NXP/Classes/Calculator.php # src/NXP/Classes/Lexer.php # src/NXP/Classes/Token/AbstractOperator.php # src/NXP/Classes/TokenFactory.php # src/NXP/MathExecutor.php
| | * Fix readmeAlexander Kiryukhin2020-05-151-2/+4
| | |
| | * 7.1 downgradeAlexander Kiryukhin2020-05-152-15/+2
| | |
| | * Fix version string for TravisAlexander Kiryukhin2020-05-151-1/+1
| | |
| | * Cleanup unused importsAlexander Kiryukhin2020-05-151-6/+0
| | |
| | * Massive refactoringAlexander Kiryukhin2020-05-1538-1904/+789
| |/ |/| | | | | | | More clean structure Parsing without regular expressions
* | Doc update (#61)Bruce Wells2020-05-141-1/+1
| | | | | | | | | | * Update documentation for PHPFUI/InstaDoc * Removing dead waffle.io links in docs
* | Negative expression start (#60)V1.1.4Bruce Wells2020-04-212-3/+10
| | | | | | | | | | * Update documentation for PHPFUI/InstaDoc * Support for negative numbers starting paren enclosed expressions