mirror of
https://github.com/composer/composer
synced 2025-05-10 00:53:06 +00:00
Clean up md5/sha1 usages, upgrade algos where possible (#12088)
* Clean up md5/sha1 usages, upgrade algos where possible * Fully qualify PHP_VERSION_ID constant usages * Fix 7.2 build
This commit is contained in:
parent
556ca06906
commit
8f3fed674b
33 changed files with 64 additions and 58 deletions
|
@ -156,7 +156,7 @@ class PathRepositoryTest extends TestCase
|
|||
foreach ($packages as $package) {
|
||||
self::assertEquals(
|
||||
$package->getDistReference(),
|
||||
sha1(file_get_contents($package->getDistUrl() . '/composer.json') . serialize($options))
|
||||
hash('sha1', file_get_contents($package->getDistUrl() . '/composer.json') . serialize($options))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue