diff options
author | Bruce Wells <brucekwells@gmail.com> | 2020-05-20 06:00:10 +0300 |
---|---|---|
committer | Bruce Wells <brucekwells@gmail.com> | 2020-05-20 06:00:10 +0300 |
commit | d195b3e909ddcd2f983d303164a1855c3557c7ff (patch) | |
tree | 2c5de8d2e616f40dbe8518df9047c2b1a118fd23 | |
parent | a621ea01c02109d2fd5808fe4e471b0dc86a5185 (diff) |
Null parameters allowed
-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 0c643a7..5a20e17 100644 --- a/src/NXP/MathExecutor.php +++ b/src/NXP/MathExecutor.php @@ -364,7 +364,7 @@ class MathExecutor * @return MathExecutor * @throws ReflectionException */ - public function addFunction(string $name, callable $function = null, int $places = null) : self + public function addFunction(string $name, ?callable $function = null, ?int $places = null) : self { $this->functions[$name] = new CustomFunction($name, $function, $places); return $this; |