function Svn::binaryVersion
Returns the version of the svn binary contained in PATH
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ Svn.php, line 355
Class
- Svn
- @author Till Klampaeckel <till@php.net> @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\UtilCode
public function binaryVersion() : ?string {
if (!self::$version) {
if (0 === $this->process
->execute([
'svn',
'--version',
], $output)) {
if (Preg::isMatch('{(\\d+(?:\\.\\d+)+)}', $output, $match)) {
self::$version = $match[1];
}
}
}
return self::$version;
}