refactor(model): Add string type hint to select columns

This commit is contained in:
kj
2025-10-21 16:26:39 -03:00
parent 6e433b4d06
commit b9509c49ed

View File

@@ -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<string> $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;