1
0
Fork 0

Merge pull request #6696 from legoktm/sort-installed

Sort vendor/composer/installed.json deterministically
pull/6864/head
Jordi Boggiano 2017-12-01 15:27:55 +01:00 committed by GitHub
commit b2f283cbd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ class FilesystemRepository extends WritableArrayRepository
$data[] = $dumper->dump($package);
}
usort($data, function($a, $b) {
return strcmp($a['name'], $b['name']);
});
$this->file->write($data);
}
}