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: use custom collection if it does not have template types #1170

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

canvural
Copy link
Collaborator

  • Added or updated tests
  • Documented user facing changes
  • Updated CHANGELOG.md

Fixes #1163

Changes

If a custom Eloquent collection class does not specify it's own template types but rather just uses @extends Collection<...>, previously we did not detect that. This PR fixes it.

Breaking changes
none

@canvural canvural force-pushed the fix-non-generic-custom-eloquent-collection branch from 0f4c3c8 to df57e6f Compare March 14, 2022 13:52
@canvural canvural merged commit a547883 into master Mar 14, 2022
@canvural canvural deleted the fix-non-generic-custom-eloquent-collection branch March 14, 2022 13:57
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.

How to set return type of Collection::values
2 participants