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

feat: Add typedCollect helper function and related tests #20

Merged

Conversation

StevePorter92
Copy link
Contributor

This PR adds a new typedCollect() helper method, based off the collect() helper method https://laravel.com/docs/11.x/collections#method-collect that comes with the Laravel framework.

This will allow developers to dynamically create typed collections on the fly.

typedCollect([new DateTime(), new DateTime()], DateTimeInterface::class);

@jeromegamez jeromegamez merged commit 0ced0f6 into jeromegamez:main Mar 17, 2024
6 checks passed
@jeromegamez
Copy link
Owner

Thank you, much appreciated! 🙏🏻

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.

None yet

2 participants