From d669fa14aff31ea082e269c30b3727048a6b424d Mon Sep 17 00:00:00 2001 From: Mark <14284867+xHeaven@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:43:50 +0100 Subject: [PATCH] Add missing types --- src/InvokableCases.php | 2 +- src/Metadata.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/InvokableCases.php b/src/InvokableCases.php index b5a2150..5ba92fd 100644 --- a/src/InvokableCases.php +++ b/src/InvokableCases.php @@ -15,7 +15,7 @@ trait InvokableCases } /** Return the enum's value or name when it's called ::STATICALLY(). */ - public static function __callStatic($name, $args) + public static function __callStatic(string $name, array $args) { $cases = static::cases(); diff --git a/src/Metadata.php b/src/Metadata.php index 9232e94..69d6036 100644 --- a/src/Metadata.php +++ b/src/Metadata.php @@ -30,7 +30,7 @@ trait Metadata ); } - public function __call(string $property, $arguments): mixed + public function __call(string $property, array $arguments): mixed { $metaProperties = Meta\Reflection::metaProperties($this);