From d195b3e909ddcd2f983d303164a1855c3557c7ff Mon Sep 17 00:00:00 2001 From: Bruce Wells Date: Tue, 19 May 2020 23:00:10 -0400 Subject: Null parameters allowed --- src/NXP/MathExecutor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3