Skip to content

Commit

Permalink
nitpicks
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 18, 2018
1 parent 8a18858 commit d89562c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to `laravel-collection-macros` will be documented in this file

## 3.7.0 - 2018-01-18
- add `pluckToArray`

## 3.6.2 - 2018-01-14
- make `parallelMap` return a new collection

Expand Down
1 change: 1 addition & 0 deletions src/macros/pluckToArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*
* @param string|array $value
* @param string|null $key
*
* @return array
*/
Collection::macro('pluckToArray', function ($value, $key = null): array {
Expand Down
2 changes: 2 additions & 0 deletions tests/PluckToArrayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public function it_returns_array_of_attributes()
$expected = [1, 2, 3];

$this->assertEquals($expected, $result);

$this->assertTrue(is_array($result));
}

/** @test */
Expand Down

0 comments on commit d89562c

Please sign in to comment.