aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/Tokenizer.php
Commit message (Collapse)AuthorAgeFilesLines
* Phpcs fixer (#129)Bruce Wells2023-08-181-0/+3
| | | | | * PHPCSFixer V3.23 * Run PHPCSFixer
* Drop php74 (#120)Bruce Wells2022-12-221-10/+3
| | | | | | | | | * PHPStan Level 6 * Drop PHP 7.4 support * Add PHPStan badge to readme * Code style cleanup
* Space should end open numbers (#113)v2.2.2Bruce Wells2022-05-281-0/+2
|
* Added ability to escape quotes in strings. (#110)Fatih Kızmaz2022-05-191-9/+49
| | | | | | | | | | | | | | | * 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.
* Full support for arrays => min, max and avg funcs accept array argument. ↵Fatih Kızmaz2022-05-171-2/+9
| | | | | | | | 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())"
* Support unlimited args for min, max default funcs. (#106)Fatih Kızmaz2022-05-131-6/+28
| | | | | | | | | * 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
* Two more tests + some code refactoring (#104)Javier Marín2022-05-091-0/+2
| | | | | | | | | | | * 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-271-111/+141
| | | | | | | * Configuring PHP CS Fixer Dropping PHP 7,3 support * Fixing merge issue
* Adding varExists method and support for undefined var handler in getVar (#96)V2.1.112.0.4Bruce Wells2022-03-211-10/+10
| | | | | | | | | | | | | | | * 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
* fix: broken support for positive exponent numbersJavier Marín2022-01-051-1/+1
|
* Support for unary positive expressions (#85)Javier Marín2021-03-051-3/+3
| | | * Support for unary positive operator
* Unary Minus (#84)V2.1.7Bruce Wells2021-02-171-31/+39
| | | Fixed unary minus to allow a minus sign in front of functions and parentheses.
* Variable fixes (#67)V2.0.3Bruce Wells2020-06-041-7/+9
| | | | | | | | | | | * 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-011-1/+1
| | | | | | | | | | | | * Code style fixes Up phpunit to v8 New CI * Remove travis * Fix CI badge * Added php-cs-fixer action
* typed parameters and return typesBruce Wells2020-05-201-10/+10
|
* 7.1 downgradeAlexander Kiryukhin2020-05-151-13/+2
|
* Massive refactoringAlexander Kiryukhin2020-05-151-0/+313
More clean structure Parsing without regular expressions