Skip to content

Eloquent Builder methods returns static #46292

Closed
@localusercamp

Description

@localusercamp

Discussed in #46291

Originally posted by localusercamp February 28, 2023
I found that Illuminate\Database\Eloquent\Builder methods @return phpDoc annotations contains both Model and static type or (Collection and static[]). Why it so? When builder can return array of queries from get() call?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions