Skip to content
Open
Changes from all commits
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
5 changes: 2 additions & 3 deletions src/CollectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,13 @@ public function get($key, $convertToCollection = false)

/**
* Returns item at the key $key. If multiple items have this key, return first. If no item has this key, return
* $ifNotFound. If no value has this key, throw ItemNotFound. If $convertToCollection is true and the return value
* is a collection (array|Traversable) an instance of Collection will be returned.
* $ifNotFound. If $convertToCollection is true and the return value is a collection (array|Traversable) an
* instance of Collection will be returned.
*
* @param mixed $key
* @param mixed $default
* @param bool $convertToCollection
* @return mixed|Collection
* @throws \DusanKasan\Knapsack\Exceptions\ItemNotFound
*/
public function getOrDefault($key, $default = null, $convertToCollection = false)
{
Expand Down