Skip to content

Commit f2589d9

Browse files
committed
Use PHP functions as array_map callbacks when possible
1 parent d8633c6 commit f2589d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/FinderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function testGetIterator()
317317

318318
$finder = $this->buildFinder();
319319
$a = iterator_to_array($finder->directories()->in(self::$tmpDir));
320-
$a = array_values(array_map(function ($a) { return (string) $a; }, $a));
320+
$a = array_values(array_map('strval', $a));
321321
sort($a);
322322
$this->assertEquals($expected, $a, 'implements the \IteratorAggregate interface');
323323
}

0 commit comments

Comments
 (0)