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

Handle the renamed static property in Factory #110

Merged
merged 3 commits into from
Feb 28, 2025

Conversation

samlev
Copy link
Contributor

@samlev samlev commented Feb 19, 2025

Laravel recently changed Factory::$modelNameResolver to Factory::$modelNameResolvers in PR #54644.

This has made me slightly annoyed because it's broken my test suite.

I've opened an issue mentioning that it's a BC break, I'm guessing that the answer from Laravel will be "why are you touching internal properties?".

Either way, this PR updates the Factory helper to circumvent the bug.

Laravel recently changed `Factory::$modelNameResolver` to `Factory::$modelNameResolvers`
@inxilpro inxilpro merged commit 632b3b0 into InterNACHI:main Feb 28, 2025
21 checks passed
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.

3 participants