aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* PHP 8.3 (#133)HEADv2.3.5masterBruce Wells2023-11-232-2/+2
|
* Update README.md (#132)Mathijs2023-11-211-1/+1
| | | Fix typo Paretheses -> Parentheses
* Improved tests for ! operator (#131)Bruce Wells2023-09-271-0/+29
|
* Phpcs fixer (#129)Bruce Wells2023-08-183-2/+6
| | | | | * PHPCSFixer V3.23 * Run PHPCSFixer
* Document all functions in readme (#127)Bruce Wells2023-07-121-1/+19
| | | | | | | * Correct average typo * Update to PHP CS FIxer V3.21 * Update available functions
* Composer updates (#126)Bruce Wells2023-07-102-5/+5
| | | | | * Correct average typo * Update to PHP CS FIxer V3.21
* fix: strcmp(): Passing null to parameter #1 ($string1) of type string is ↵v2.3.4Javier Marín2023-03-211-2/+2
| | | | deprecated (#123)
* Php unit10 (#124)Bruce Wells2023-03-214-23/+18
| | | | | * Static PHPUnit providers * Limit PHP upgrades till new PHP version is tested * Upgrade PHPUnit config schema
* Depreciations are unit test failuresv2.3.3Bruce Wells2022-12-261-1/+2
|
* Fixing PHPCSFixer settingsBruce Wells2022-12-261-1/+1
| | | 'closure_fn_spacing'=>'none'
* Added Not(!) logical operator and median function with tests. (#121)Fatih Kızmaz2022-12-263-113/+140
|
* Update to php 8.0 in for packagistBruce Wells2022-12-221-1/+1
|
* Drop php74 (#120)Bruce Wells2022-12-2212-120/+72
| | | | | | | | | * PHPStan Level 6 * Drop PHP 7.4 support * Add PHPStan badge to readme * Code style cleanup
* Php8.2 (#119)v2.3.2Bruce Wells2022-12-083-141/+173
| | | | | | | | | * PHP 8.2 Support * Code style fixes * Specify precision of 16 for tests * Remove PHPStan testing due to PHP version differences * Update actions to latest versions * Updated tests to avoid hard coded values * Enhanced error reporting for tests
* More code style fixes (#118)v2.3.1Bruce Wells2022-08-041-0/+3
|
* Throw an IncorrectNumberOfFunctionParametersException if a function gets ↵madman-812022-08-042-1/+19
| | | | | | | | | | | more arguments than it supports (#117) * Throw an IncorrectNumberOfFunctionParametersException if a function gets more arguments than it supports * Update CustomFunction.php Code Style Co-authored-by: Bruce Wells <brucekwells@gmail.com>
* Update README.mdBruce Wells2022-06-021-2/+3
|
* Bcmath (#115)v2.3.0Bruce Wells2022-06-023-7/+289
| | | | | * Add useBCMath * Support for % operator (mod)
* Space should end open numbers (#113)v2.2.2Bruce Wells2022-05-282-7/+38
|
* Update readme with non redundant example (concat) (#111)v2.2.1Bruce Wells2022-05-211-1/+1
|
* Added ability to escape quotes in strings. (#110)Fatih Kızmaz2022-05-195-68/+114
| | | | | | | | | | | | | | | * Added ability to escape quotes in strings. * Removed type checking for customfunc arguments. It was a bad idea to check types, because php automatically tries to convert a parameter to required type and throws if it failures. On the other hand, we can check types also in callables if required. * Update phpdoc * Fix some typos + improve min, max, avg funcs. * Update readme + improvements. * Fix a typo in sample. * Fix unshown backslash in readme.
* Update README.mdv2.2.0Bruce Wells2022-05-171-1/+2
| | | Support for variable number of function parameters
* Release Prep (#109)Bruce Wells2022-05-171-13/+13
|
* Full support for arrays => min, max and avg funcs accept array argument. ↵Fatih Kızmaz2022-05-174-7/+43
| | | | | | | | Also array function is defined which return arguments as array. Square bracket arrays are also supported. (#108) valid expression -> "max([1,2,3])" valid expression -> "max(array(1,2,3))" valid expression -> "max($ages_arr)" valid expression -> "max(ages_arr())"
* Small support for arrays => min, max and avg funcs accept array argument. ↵Fatih Kızmaz2022-05-162-8/+52
| | | | | | | (handwritten arrays not supported yet, can be used for array variables or functions returning an array) (#107) invalid expression -> "max([1,2,3])" valid expression -> "max($ages_arr)" valid expression -> "max(ages_arr())"
* Support unlimited args for min, max default funcs. (#106)Fatih Kızmaz2022-05-137-28/+116
| | | | | | | | | * Support unlimited args for min, max default funcs. Default functions max and min were requiring 2 arguments strictly. Now they supoort unlimited args, same as php's min, max funcs. * Improved functions: support unlimited parameters (see min, max funcs), optional parameters (see round func), parameters with types (see round func, throws IncorrectFunctionParameterException on unmatched type, union types and intersection types not supported because of min php level! there is a todo for this, to support them later @see CustomFunction@execute) Also added unittests for improvements. * Run php-cs-fixer fix
* Remove extra line (#105)Bruce Wells2022-05-091-1/+0
|
* Two more tests + some code refactoring (#104)Javier Marín2022-05-096-320/+133
| | | | | | | | | | | * test: add testNullReturnType and testUnsupportedOperands * refactor: fix PhpDoc comments and use PHP 7.4 arrow functions * refactor: fix PHP-CS-Fixer issues * test: run testUnsupportedOperands() only on PHP8+ Co-authored-by: Javier Marín <contacto@ideatic.net>
* Phpcs fixer (#103)Bruce Wells2022-04-2712-939/+1242
| | | | | | | * Configuring PHP CS Fixer Dropping PHP 7,3 support * Fixing merge issue
* Prep for V2.2.0 release (#99)V2.2.0Bruce Wells2022-04-262-5/+57
|
* Add a custom variable validator + protected props (#98)Matthijs Meulenbrug2022-04-252-10/+61
|
* 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
| | | |