diff options
author | Fatih Kızmaz <barka_21@hotmail.com> | 2022-05-13 15:55:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 15:55:52 +0300 |
commit | e21d59c9def9f25bc6a7c3fbd41e2e126d68b1df (patch) | |
tree | 379ebf22c76d48aa5897bb9db487c60cae542533 /src/NXP/Exception/IncorrectFunctionParameterException.php | |
parent | da506a7ce05c6141e3c32f72c351eace38577f89 (diff) |
Support unlimited args for min, max default funcs. (#106)
* 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
Diffstat (limited to 'src/NXP/Exception/IncorrectFunctionParameterException.php')
-rw-r--r-- | src/NXP/Exception/IncorrectFunctionParameterException.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/NXP/Exception/IncorrectFunctionParameterException.php b/src/NXP/Exception/IncorrectFunctionParameterException.php new file mode 100644 index 0000000..b378718 --- /dev/null +++ b/src/NXP/Exception/IncorrectFunctionParameterException.php @@ -0,0 +1,16 @@ +<?php + +/** + * This file is part of the MathExecutor package + * + * (c) Alexander Kiryukhin + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code + */ + +namespace NXP\Exception; + +class IncorrectFunctionParameterException extends MathExecutorException +{ +} |