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);