Skip to content

Commit

Permalink
Use PHP functions as array_map callbacks when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Mar 14, 2017
1 parent d8633c6 commit f2589d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/FinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function testGetIterator()

$finder = $this->buildFinder();
$a = iterator_to_array($finder->directories()->in(self::$tmpDir));
$a = array_values(array_map(function ($a) { return (string) $a; }, $a));
$a = array_values(array_map('strval', $a));
sort($a);
$this->assertEquals($expected, $a, 'implements the \IteratorAggregate interface');
}
Expand Down

0 comments on commit f2589d9

Please sign in to comment.