Skip to content

Commit 69d7782

Browse files
committed
fix content hash keyword
1 parent b66b72c commit 69d7782

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Composer/ComposerOutdatedResponseProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ public function provide(): string
3939
private function resolveProjectComposerHash(): ?string
4040
{
4141
if (file_exists(getcwd() . '/composer.lock')) {
42-
return sha1(getcwd() . '/composer.lock');
42+
return md5_file(getcwd() . '/composer.lock');
4343
}
4444

4545
if (file_exists(getcwd() . '/composer.json')) {
46-
return getcwd() . '/composer.json';
46+
return md5_file(getcwd() . '/composer.json');
4747
}
4848

4949
return null;

0 commit comments

Comments
 (0)