Sha256: 0943a5794889cbee2583ed1b82e1fc9962f72a15c52fe0af0992a0c66d370fbf
Contents?: true
Size: 573 Bytes
Versions: 38
Compression:
Stored size: 573 Bytes
Contents
<?php declare(strict_types=1); namespace Dependabot\Composer; use Composer\Package\Locker; 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
38 entries across 38 versions & 1 rubygems