Skip to content

模型查询find后->toArray()无代码提示 #833

@ail994

Description

@ail994

模型查询find后->toArray()无代码提示,没有识别变量的模型对象类型
新版:
/**
* 查找单条记录.
*
* @param mixed $data 主键数据
* @param ?Closure $closure 闭包数据
*
* @throws Exception
* @throws ModelNotFoundException
* @throws DataNotFoundException
*
* @return mixed|static
*/

3.0版本:
/**
* 查找单条记录.
*
* @param mixed $data 主键数据
* @param ?Closure $closure 闭包数据
*
* @throws Exception
* @throws ModelNotFoundException
* @throws DataNotFoundException
*
* @return static|\think\Model|array|null
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions