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

Improve return types when using a custom Media model #3777

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

sforward
Copy link
Contributor

@sforward sforward commented Feb 4, 2025

This PR improves several return types when the Media model is extended (using the media_model config). With these generic types PHPStan can correctly resolve the custom Media model type.

@freekmurze freekmurze merged commit 735127e into spatie:main Feb 5, 2025
13 checks passed
@freekmurze
Copy link
Member

Thanks!

@sforward sforward deleted the feat/template-media branch February 5, 2025 09:35
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