From 7704ba918fbbacfd40a87725b2e01fde58b186d0 Mon Sep 17 00:00:00 2001 From: Bruce Wells Date: Wed, 21 Dec 2022 18:52:18 -0500 Subject: Drop php74 (#120) * PHPStan Level 6 * Drop PHP 7.4 support * Add PHPStan badge to readme * Code style cleanup --- src/NXP/Classes/CustomFunction.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/NXP/Classes/CustomFunction.php') 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(); -- cgit v1.2.3