aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/CustomFunction.php
diff options
context:
space:
mode:
authorBruce Wells <brucekwells@gmail.com>2022-03-21 19:52:25 +0300
committerGitHub <noreply@github.com>2022-03-21 19:52:25 +0300
commita0ff7a79af8c3bc5e9c5decee24cbefb5d80e93b (patch)
tree9432edb4d427293952ed99f48968b8ad32f6633a /src/NXP/Classes/CustomFunction.php
parent6ebe4849ff7448d5903914d2f8980af5c9fd8d34 (diff)
Adding varExists method and support for undefined var handler in getVar (#96)V2.1.112.0.4
* Added varExists method * getVar now respects VarNotFoundHandler setting * Use local version of PHP-CS-Fixer Instead of hard coded version from github actions * Fixing actions * Fixing actions * Dropping testing for 7.3, as it is no longer supported
Diffstat (limited to 'src/NXP/Classes/CustomFunction.php')
-rw-r--r--src/NXP/Classes/CustomFunction.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/NXP/Classes/CustomFunction.php b/src/NXP/Classes/CustomFunction.php
index 6e4fdc5..225495f 100644
--- a/src/NXP/Classes/CustomFunction.php
+++ b/src/NXP/Classes/CustomFunction.php
@@ -1,6 +1,5 @@
<?php
-
namespace NXP\Classes;
use NXP\Exception\IncorrectNumberOfFunctionParametersException;
@@ -49,7 +48,7 @@ class CustomFunction
*
* @throws IncorrectNumberOfFunctionParametersException
*/
- public function execute(array &$stack) : Token
+ public function execute(array &$stack): Token
{
if (count($stack) < $this->places) {
throw new IncorrectNumberOfFunctionParametersException($this->name);