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

[11.x] Add valid values to ensure method #54840

Merged
merged 3 commits into from
Feb 28, 2025
Merged

Conversation

lancepioch
Copy link
Contributor

Currently using phpstan and in the docs (and code), it clearly states and allows these primitive types!

The full list of acceptable types: https://www.php.net/manual/en/function.get-debug-type.php

Docs: https://laravel.com/docs/12.x/collections#method-ensure

@taylorotwell taylorotwell merged commit fd9681f into laravel:11.x Feb 28, 2025
27 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.

4 participants