for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\Migrations;
class MigrationsVersion
{
/** @var string */
private static $version = 'v2.0.0';
public static function VERSION() : string
$gitVersion = '@git-version@';
if (self::isACustomPharBuild($gitVersion)) {
return $gitVersion;
}
return self::$version;
private static function isACustomPharBuild(string $gitVersion) : bool
return $gitVersion !== '@' . 'git-version@';