refactor(model): Add string type hint to select columns
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user