diff options
author | Bruce Wells <brucekwells@gmail.com> | 2019-01-12 07:48:43 +0300 |
---|---|---|
committer | Bruce Wells <brucekwells@gmail.com> | 2019-01-12 07:56:39 +0300 |
commit | 44e2bb192eb1c847741894ef24c8fbe24fe2f15a (patch) | |
tree | caac62a21a43b80221121f3838b8cd5487d27983 /src/NXP/MathExecutor.php | |
parent | 145a0a136fc41dc59a78637a8e84f1c8952ecc31 (diff) |
Fixed function parameter order
Corrected $places default value for addFunction to match TokenFactory
Added function order test and put expected order first in assertEquals
If else blocks in calculator
Updated docs
Diffstat (limited to 'src/NXP/MathExecutor.php')
-rw-r--r-- | src/NXP/MathExecutor.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NXP/MathExecutor.php b/src/NXP/MathExecutor.php index 29c6a64..6325d35 100644 --- a/src/NXP/MathExecutor.php +++ b/src/NXP/MathExecutor.php @@ -174,7 +174,7 @@ class MathExecutor * @return MathExecutor * @throws \ReflectionException */ - public function addFunction($name, $function = null, $places = 1) + public function addFunction($name, $function = null, $places = null) { $this->tokenFactory->addFunction($name, $function, $places); |