You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The return type of the Builder::get() method is listed as either a Collection or static[]. Given the method returns Model::newCollection(), whose return type is always Collection, is it correct to say that static[] is a potential option?
Proposal: remove static[] as a potential return type in Builder::get().
If you notice improper DocBlock, PHPStan, or IDE warnings while using Laravel, do not create a GitHub issue. Instead, please submit a pull request to fix the problem. Also see our contribution guide.
Laravel Version
10.4.1
PHP Version
8.1.4
Database Driver & Version
No response
Description
The return type of the
Builder::get()
method is listed as either aCollection
orstatic[]
. Given the method returnsModel::newCollection()
, whose return type is alwaysCollection
, is it correct to say thatstatic[]
is a potential option?Proposal: remove
static[]
as a potential return type inBuilder::get()
.framework/src/Illuminate/Database/Eloquent/Builder.php
Line 695 in fad2aab
Steps To Reproduce
Review the following line:
framework/src/Illuminate/Database/Eloquent/Builder.php
Line 695 in fad2aab
The text was updated successfully, but these errors were encountered: