diff options
Diffstat (limited to 'src/NXP/Classes/CustomFunction.php')
-rw-r--r-- | src/NXP/Classes/CustomFunction.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/NXP/Classes/CustomFunction.php b/src/NXP/Classes/CustomFunction.php index 85db379..e4cdd76 100644 --- a/src/NXP/Classes/CustomFunction.php +++ b/src/NXP/Classes/CustomFunction.php @@ -8,8 +8,6 @@ use ReflectionFunction; class CustomFunction { - public string $name = ''; - /** * @var callable $function */ @@ -26,9 +24,8 @@ class CustomFunction * * @throws ReflectionException */ - public function __construct(string $name, callable $function) + public function __construct(public string $name, callable $function) { - $this->name = $name; $this->function = $function; $reflection = (new ReflectionFunction($function)); $this->isVariadic = $reflection->isVariadic(); |