From b9509c49edcf9cfe38366196679a249b3d445a84 Mon Sep 17 00:00:00 2001 From: kj Date: Tue, 21 Oct 2025 16:26:39 -0300 Subject: [PATCH] refactor(model): Add string type hint to select columns --- src/Libs/Model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Libs/Model.php b/src/Libs/Model.php index 21db930..566c2e6 100644 --- a/src/Libs/Model.php +++ b/src/Libs/Model.php @@ -499,12 +499,12 @@ class Model /** * Defines SELECT in the SQL statement. * - * @param array $columns - * Columns to be selected in the SQL query. + * @param array $columns + * Columns to be selected in the SQL query. * * @return static */ - public static function select(...$columns): static + public static function select(string ...$columns): static { static::$querySelect['select'] = $columns;