Missing generic for return type of \Illuminate\Support\Collection::collapse
#57553
Unanswered
apasquini95
asked this question in
Q&A
Replies: 1 comment
-
|
/**
This is return type static. use this method like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I everyone and thanks for this awesome framework :) I saw that the method
\Illuminate\Support\Collection::collapseis missing the generics in the return type (https://github.com/laravel/framework/blob/12.x/src/Illuminate/Collections/Collection.php#L140) and this causes errors with tools likephpstan-strict-rules, is this intended or am I missing something?Beta Was this translation helpful? Give feedback.
All reactions