for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace PackageVersions;
use OutOfBoundsException;
use UnexpectedValueException;
/**
* This is a stub class: it is in place only for scenarios where PackageVersions
* is installed with a `--no-scripts` flag, in which scenarios the Versions class
* is not being replaced.
*
* If you are reading this docBlock inside your `vendor/` dir, then this means
* that PackageVersions didn't correctly install, and is in "fallback" mode.
*/
final class Versions
{
public const ROOT_PACKAGE_NAME = FallbackVersions::ROOT_PACKAGE_NAME;
public const VERSIONS = [];
private function __construct()
}
* @throws OutOfBoundsException if a version cannot be located.
* @throws UnexpectedValueException if the composer.lock file could not be located.
public static function getVersion(string $packageName) : string
return FallbackVersions::getVersion($packageName);