Skip to content

Commit

Permalink
Merge pull request #5 from datamweb/patch-1
Browse files Browse the repository at this point in the history
docs: fix method name
  • Loading branch information
lonnieezell authored Apr 16, 2024
2 parents 8908657 + 27da8f4 commit 3beb65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Returns the first item in the collection.

```php
$collection = new Collection(['foo', 'bar', 'baz']);
return $collection->next();
return $collection->first();
// returns 'foo'
```

Expand Down

0 comments on commit 3beb65f

Please sign in to comment.