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.
|
* Defines SELECT in the SQL statement.
|
||||||
*
|
*
|
||||||
* @param array $columns
|
* @param array<string> $columns
|
||||||
* Columns to be selected in the SQL query.
|
* Columns to be selected in the SQL query.
|
||||||
*
|
*
|
||||||
* @return static
|
* @return static
|
||||||
*/
|
*/
|
||||||
public static function select(...$columns): static
|
public static function select(string ...$columns): static
|
||||||
{
|
{
|
||||||
static::$querySelect['select'] = $columns;
|
static::$querySelect['select'] = $columns;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user