aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Wells <brucekwells@gmail.com>2020-05-20 06:00:10 +0300
committerBruce Wells <brucekwells@gmail.com>2020-05-20 06:00:10 +0300
commitd195b3e909ddcd2f983d303164a1855c3557c7ff (patch)
tree2c5de8d2e616f40dbe8518df9047c2b1a118fd23 /src
parenta621ea01c02109d2fd5808fe4e471b0dc86a5185 (diff)
Null parameters allowed
Diffstat (limited to 'src')
-rw-r--r--src/NXP/MathExecutor.php2
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;