Skip to content

Commit 8d88cb7

Browse files
authored
Change yield format to include filename as key
1 parent 3f583cd commit 8d88cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Testing/Fixture/FixtureFileFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static function yieldDirectory(string $directory, string $suffix = '*.php
2222
->sortByName();
2323

2424
foreach ($finder as $fileInfo) {
25-
yield [$fileInfo->getRealPath()];
25+
yield $fileInfo->getFilename() => [$fileInfo->getRealPath()];
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)