New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception: Empty argument in Evaluator->addArgument() when custom function without arguments #20
Comments
This seems to fix it (see changes in bold) private function getFunction(string $name) { |
yup, seems functions without arguments not tested yet ) |
Hi @madorin, great, simple (not so simple xd) and efficient code for Evaluator !
Thanks very much for sharing. |
It works only for single function formula - formula without arguments. For it to work proArguments() method needs:
|
I have and EvalMathFunctions class, holding a 'random' function without arguments.
I register this in matex:
I then call the function:
$this->evaluator->execute('random()');
And get the error.
The text was updated successfully, but these errors were encountered: