From 06b7907f7c84021d8f623e1f06551717d1bcd7ef Mon Sep 17 00:00:00 2001 From: kj Date: Sat, 25 Mar 2023 21:28:25 -0400 Subject: [PATCH] Define mixed type to param $id on getById method. --- src/Libs/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libs/Model.php b/src/Libs/Model.php index ef9c78e..e8de154 100644 --- a/src/Libs/Model.php +++ b/src/Libs/Model.php @@ -705,7 +705,7 @@ class Model { * * @return Model|null */ - public static function getById($id): ?Model { + public static function getById(mixed $id): ?Model { return static::where(static::$primaryKey, $id)->getFirst(); }