Skip to content

Commit

Permalink
Merge pull request #821 from lofye/patch-1
Browse files Browse the repository at this point in the history
Update collections.md
  • Loading branch information
freekmurze authored Jul 15, 2024
2 parents 48b3708 + ef44b1b commit f42479d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/as-a-data-transfer-object/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class SongData extends Data
Now when collecting an array data objects a `SongCollection` will be returned:

```php
SongData::collect([
SongData::collectArray([
['title' => 'Never Gonna Give You Up', 'artist' => 'Rick Astley'],
['title' => 'Living on a prayer', 'artist' => 'Bon Jovi'],
]); // returns an SongCollection of SongData objects
Expand Down

0 comments on commit f42479d

Please sign in to comment.