-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting errors about inferred and declared return types, but they don't make sense. #8672
Comments
No, cannot recreate it. |
The trait that method is in, has the following class docblock. /**
* @template-covariant I of mixed
* @template E of mixed
*
* @requires \Smpl\Collections\Contracts\SortedCollection<I, E>
*
* @mixin \Smpl\Collections\Contracts\Collection<I, E>
*/
trait SortsCollection {} Everywhere that the trait is used, there's also this. /** @use \Smpl\Collections\Concerns\SortsCollection<int, E> */
use SortsCollection; It looks like it may, for some reason, be using |
I'm also having the following error with 5 other methods in this trait.
|
Could you post the content of Collection and SortsCollection also? Or even better if you have the codebase available somewhere |
I've pushed all of my local changes (There were a lot) to a temporary branch called Here's And here's Let me know if you have any more specific questions, I'm aware that as far as small packages go, it isn't XD |
As a follow-up, the directory With the But without it, you get: |
I have the following method.
Which is causing the following error.
This method is not defined as returning
list<int>
, which appears nowhere in my codebaseThe text was updated successfully, but these errors were encountered: