From a535e5fc6279a4fac3b649a9d1d6abc2a480291d Mon Sep 17 00:00:00 2001 From: Andrew Minion Date: Mon, 4 Oct 2021 10:04:43 -0500 Subject: [PATCH] update docs to allow integers Prevents PHPstan from complaining about an integer ID being passed to the method --- src/HasHashid.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HasHashid.php b/src/HasHashid.php index 80e9bb7..421d510 100644 --- a/src/HasHashid.php +++ b/src/HasHashid.php @@ -12,7 +12,7 @@ * @method Model|null findByHashid($hashid) * @method Model findByHashidOrFail($hashid) */ -trait HasHashid +trait HasHashid { public static function bootHasHashid() { @@ -39,7 +39,7 @@ public function hashidToId($hashid) /** * Encode an id to its equivalent hashid * - * @param string $id + * @param int|string $id * @return string|null */ public function idToHashid($id)