Skip to content

[12.x] fix: Factory::state and ::prependState generics #55915

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

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

calebdw
Copy link
Contributor

@calebdw calebdw commented Jun 3, 2025

Hello!

The model passed to the closure is not the generic type TModel, but rather the parent model (if any). Because we can't easily determine the type of the parent model, we just use the base Model.

Closes larastan/larastan#2115

Thanks!

The model passed to the closure is not the generic type TModel, but
rather the parent model (if any). Because we can't easily determine
the type of the parent model, we just use the base Model.
@taylorotwell taylorotwell merged commit 74af761 into laravel:12.x Jun 3, 2025
61 checks passed
@calebdw calebdw deleted the calebdw/push-lqymukrluxsy branch June 3, 2025 13:53
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