From 8494b7f050d08ddd56f8f8a2701f18228cd4efb5 Mon Sep 17 00:00:00 2001 From: Tomoki Morita Date: Mon, 20 Feb 2023 18:23:15 +0900 Subject: [PATCH] fix phpdoc types for encode method (#188) --- src/Hashids.php | 2 +- src/HashidsInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Hashids.php b/src/Hashids.php index efa3c63..3527c97 100644 --- a/src/Hashids.php +++ b/src/Hashids.php @@ -80,7 +80,7 @@ public function __construct( /** * Encode parameters to generate a hash. * - * @param string|array $numbers + * @param int|string|array $numbers */ public function encode(...$numbers): string { diff --git a/src/HashidsInterface.php b/src/HashidsInterface.php index beae416..8dbd839 100644 --- a/src/HashidsInterface.php +++ b/src/HashidsInterface.php @@ -15,7 +15,7 @@ interface HashidsInterface { /** * Encode parameters to generate a hash. - * @param string|array $numbers + * @param int|string|array $numbers */ public function encode(...$numbers): string;