Sha256: 2a31df1240fa7432ec9b30e73d4637038aaa5f60af1288cd0cc95f13b37a006a
Contents?: true
Size: 579 Bytes
Versions: 647
Compression:
Stored size: 579 Bytes
Contents
<?php declare(strict_types=1); namespace Dependabot\Composer; use Composer\Package\Locker; final class Hasher { /** * @throws \RuntimeException */ public static function getContentHash(array $args): string { [$workingDirectory] = $args; $config = $workingDirectory . '/composer.json'; $contents = file_get_contents($config); if (!is_string($contents)) { throw new \RuntimeException(sprintf('Failed to load contents of "%s".', $config)); } return Locker::getContentHash($contents); } }
Version data entries
647 entries across 360 versions & 1 rubygems