PackageVersions\FallbackVersions::getComposerLockPath PHP Method

getComposerLockPath() private static method

private static getComposerLockPath ( ) : string
return string
    private static function getComposerLockPath() : string
    {
        // bold assumption, but there's not here to fix everyone's problems.
        $checkedPaths = [__DIR__ . '/../../../../../composer.lock', __DIR__ . '/../../composer.lock'];
        foreach ($checkedPaths as $path) {
            if (file_exists($path)) {
                return $path;
            }
        }
        throw new \UnexpectedValueException(sprintf('PackageVersions could not locate your `composer.lock` location. This is assumed to be in %s. ' . 'If you customized your composer vendor directory and ran composer installation with --no-scripts, ' . 'then you are on your own, and we can\'t really help you. Fix your shit and cut the tooling some slack.', json_encode($checkedPaths)));
    }