aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/CustomFunction.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/NXP/Classes/CustomFunction.php')
-rw-r--r--src/NXP/Classes/CustomFunction.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/NXP/Classes/CustomFunction.php b/src/NXP/Classes/CustomFunction.php
index 944f7d9..636435c 100644
--- a/src/NXP/Classes/CustomFunction.php
+++ b/src/NXP/Classes/CustomFunction.php
@@ -32,7 +32,7 @@ class CustomFunction
* @param int $places
* @throws ReflectionException
*/
- public function __construct(string $name, callable $function, $places = null)
+ public function __construct(string $name, callable $function, int $places = null)
{
$this->name = $name;
$this->function = $function;
@@ -44,7 +44,7 @@ class CustomFunction
}
}
- public function execute(&$stack)
+ public function execute(array &$stack) : Token
{
if (count($stack) < $this->places) {
throw new IncorrectExpressionException();