Skip to content

Conversation

@cosmastech
Copy link
Contributor

@cosmastech cosmastech commented Aug 15, 2025

The model missing updates that @DarkGhostHunter added in #56403 are 🔥; I started using them today.

I noticed that, while I can pass an Eloquent\Collection of Users and the test passes, phpstan barks because it's hinted as being an array.

This fixes that by marking the params as iterable<Model> instead of Model[].

See here that this test passes:
image

But static analysis isn't happy
image

@taylorotwell taylorotwell merged commit ab76a52 into laravel:12.x Aug 15, 2025
62 checks passed
@cosmastech cosmastech deleted the patch-18 branch August 16, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants