Skip to content
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

Fix Undefined array key "factory" #389

Merged
merged 1 commit into from
Feb 16, 2025
Merged

Conversation

alies-dev
Copy link
Collaborator

Closes #386 Undefined array key "factory"

Because HasFactory adds factory() method and it also checks for the $factory property, src/Handlers/Eloquent/ModelRelationshipPropertyHandler.php treated it as a relationship and thus allowed to use $factory no matter declared it or not.

@alies-dev alies-dev self-assigned this Feb 16, 2025
@alies-dev alies-dev merged commit d5dd124 into psalm:2.x Feb 16, 2025
3 of 16 checks passed
@alies-dev alies-dev deleted the 386-factory branch February 16, 2025 16:07
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.

1 participant