Skip to content

Commit 46f29dc

Browse files
committed
Make path notation apparent in __::has() documentation
1 parent 5e529a8 commit 46f29dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ __::groupBy($a, 'continent');
235235
##### [__::has](src/__/collections/has.php)
236236
Returns true if the collection contains the requested key.
237237
```php
238-
__::has(['foo' => 'bar', 'foz' => 'baz'], 'foo');
238+
__::has(['foo' => ['bar' => 'num'], 'foz' => 'baz'], 'foo.bar');
239239
// >> true
240240
```
241241

src/__/collections/has.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* In constrast to isset(), __::has() returns true if the key exists but is null.
99
*
10-
** __::hasKeys(['foo' => 'bar', 'foz' => 'baz'], 'foo');
10+
** __::has(['foo' => ['bar' => 'num'], 'foz' => 'baz'], 'foo.bar');
1111
** // → true
1212
*
1313
** __::hasKeys((object) ['foo' => 'bar', 'foz' => 'baz'], 'bar');

0 commit comments

Comments
 (0)