Skip to content

Commit

Permalink
Make path notation apparent in __::has() documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsieurV committed Jan 12, 2018
1 parent 5e529a8 commit 46f29dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ __::groupBy($a, 'continent');
##### [__::has](src/__/collections/has.php)
Returns true if the collection contains the requested key.
```php
__::has(['foo' => 'bar', 'foz' => 'baz'], 'foo');
__::has(['foo' => ['bar' => 'num'], 'foz' => 'baz'], 'foo.bar');
// >> true
```

Expand Down
2 changes: 1 addition & 1 deletion src/__/collections/has.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* In constrast to isset(), __::has() returns true if the key exists but is null.
*
** __::hasKeys(['foo' => 'bar', 'foz' => 'baz'], 'foo');
** __::has(['foo' => ['bar' => 'num'], 'foz' => 'baz'], 'foo.bar');
** // → true
*
** __::hasKeys((object) ['foo' => 'bar', 'foz' => 'baz'], 'bar');
Expand Down

0 comments on commit 46f29dc

Please sign in to comment.