run() !== \RectorPrefix20210808\Symplify\PackageBuilder\Console\ShellCode::SUCCESS) { throw new \Rector\Core\Exception\VersionException('You must ensure to run compile from composer git repository clone and that git binary is available.'); } $version = \trim($process->getOutput()); return \trim($version, '"'); } public static function resolverReleaseDateTime() : \DateTime { $process = new \RectorPrefix20210808\Symfony\Component\Process\Process(['git', 'log', '-n1', '--pretty=%ci', 'HEAD'], __DIR__); if ($process->run() !== \RectorPrefix20210808\Symplify\PackageBuilder\Console\ShellCode::SUCCESS) { throw new \Rector\Core\Exception\VersionException('You must ensure to run compile from composer git repository clone and that git binary is available.'); } return new \DateTime(\trim($process->getOutput())); } }