8000 [12.x] Add support for callback evaluation in containsOneItem method by fernandokbs · Pull Request #55622 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[12.x] Add support for callback evaluation in containsOneItem method #55622

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

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Collection.php
  • Loading branch information
taylorotwell authored May 2, 2025
commit 982204411ca57c267a5c236ea208c8b948611ae3
2 changes: 1 addition & 1 deletion src/Illuminate/Collections/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ public function isEmpty()
}

/**
* Determine if the collection contains exactly one item. If a callback is provided, it checks if exactly one item matches the condition.
* Determine if the collection contains exactly one item. If a callback is provided, determine if exactly one item matches the condition.
*
* @param (callable(TValue, TKey): bool)|null $callback
* @return bool
Expand Down
0