File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,13 @@ Create instance of `Collection`.
2626
2727Add an item to the collection. If ` $key ` already exists in the collection it will be overwritten.
2828
29- ##### ` get(string $key, mixed $default = null) `
29+ ##### ` get(string|array $key, mixed $default = null) `
3030
31- Return the value of an item from the collection. If ` $key ` doesn't exist in the collection then ` $default ` will be returned.
31+ Get an item from the collection. Returns ` $default ` if item cannot be found.
32+
33+ Passing an array of item keys for the value of ` $key ` will result in multiple
34+ items being returned. Keys that are missing from the collection will be
35+ returned with a value of ` $default ` .
3236
3337##### ` has(string $key) : bool `
3438
Original file line number Diff line number Diff line change 11{
22 "name" : " nonamephp/php7-common" ,
33 "description" : " A collection of common PHP 7 libraries" ,
4- "version" : " 0.3.0 " ,
4+ "version" : " 0.3.1 " ,
55 "license" : " MIT" ,
66 "authors" : [
77 {
You can’t perform that action at this time.
0 commit comments