Skip to content

Commit

Permalink
Use first class callable syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jkniest committed Jun 3, 2024
1 parent d477439 commit 0d6634f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/FixtureLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,7 @@ private function sortAllByPriority(array $fixtures): array
*/
private function buildDependencyTree(array $fixtures): array
{
uasort(
$fixtures,
fn (Fixture $a, Fixture $b) => $this->compareDependencies($a, $b),
);
uasort($fixtures, $this->compareDependencies(...));

return $fixtures;
}
Expand Down

0 comments on commit 0d6634f

Please sign in to comment.