diff options
Diffstat (limited to 'src/NXP/Classes/Operator.php')
-rw-r--r-- | src/NXP/Classes/Operator.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/NXP/Classes/Operator.php b/src/NXP/Classes/Operator.php index 00485bc..d9a70d7 100644 --- a/src/NXP/Classes/Operator.php +++ b/src/NXP/Classes/Operator.php @@ -24,7 +24,7 @@ class Operator public $priority; /** - * @var callable<\SplStack> + * @var callable(\SplStack) */ public $function; @@ -50,6 +50,11 @@ class Operator $this->places = $reflection->getNumberOfParameters(); } + /** + * @param array<Token> $stack + * + * @throws IncorrectExpressionException + */ public function execute(array &$stack) : Token { if (count($stack) < $this->places) { |