Skip to content

Commit 0e699d7

Browse files
committed
Bump version and fix readme
1 parent 8064bd3 commit 0e699d7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ Create instance of `Collection`.
2626

2727
Add 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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
{

0 commit comments

Comments
 (0)