Skip to content

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

Merged
taylorotwell merged 3 commits into
laravel:11.xfrom
lancepioch:patch-2
Feb 28, 2025
Merged

[11.x] Add valid values to ensure method#54840
taylorotwell merged 3 commits into
laravel:11.xfrom
lancepioch:patch-2

Conversation

@lancepioch

Copy link
Copy Markdown
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

Comment thread src/Illuminate/Collections/Traits/EnumeratesValues.php Outdated
taylorotwell and others added 2 commits February 28, 2025 10:55
Co-authored-by: Sebastian Hädrich <11225821+shaedrich@users.noreply.github.com>
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