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

Remove @mixin on Model class #2981

Merged
merged 1 commit into from
May 28, 2024
Merged

Remove @mixin on Model class #2981

merged 1 commit into from
May 28, 2024

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented May 27, 2024

Fix #2923

It seems that @mixin is too naive, doesn't support all dynamic methods and doesn't translate return types correctly.

Checklist

  • Add tests and ensure they pass
  • Add an entry to the CHANGELOG.md file
  • Update documentation for new features

@GromNaN GromNaN requested a review from a team as a code owner May 27, 2024 08:35
@GromNaN GromNaN requested a review from jmikola May 27, 2024 08:35
@GromNaN GromNaN changed the base branch from 4.4 to 4.3 May 27, 2024 08:36
@@ -48,7 +48,6 @@
use function strcmp;
use function var_export;

/** @mixin Builder */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noted there were some other solutions proposed in larastan/larastan#1940 (comment) but I assume they're not something we can fix independently within this package.

@GromNaN GromNaN merged commit 7dc263e into mongodb:4.3 May 28, 2024
26 checks passed
@GromNaN GromNaN deleted the no-mixin branch May 28, 2024 14:00
@GromNaN GromNaN added the bug label May 31, 2024
@GromNaN GromNaN added this to the 4.3 milestone May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants