Skip to content

Commit

Permalink
fix variable name in README
Browse files Browse the repository at this point in the history
  • Loading branch information
the-pulli committed Sep 22, 2023
1 parent 0c5964b commit 1a73cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ Like `mapToCollection` it maps all arrays/objects recursively to an array.

```php
// Item has a toArray() public method, then it can be wrapped into the collection like this:
$collection = Collection::recursiveToArray(['item1' => Item(), 'item2' => Item()]);
$array = Collection::recursiveToArray(['item1' => Item(), 'item2' => Item()]);
```

0 comments on commit 1a73cb8

Please sign in to comment.