mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Add return types to closures (#9)
This commit is contained in:
parent
7b1fc4b2c8
commit
1321bfca36
66 changed files with 171 additions and 150 deletions
|
@ -150,7 +150,7 @@ class FilesystemRepository extends WritableArrayRepository
|
|||
}
|
||||
|
||||
sort($data['dev-package-names']);
|
||||
usort($data['packages'], function ($a, $b) {
|
||||
usort($data['packages'], function ($a, $b): int {
|
||||
return strcmp($a['name'], $b['name']);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue