And update the class names that changed.
Bug: T113431
Change-Id: Icf73630e60fe7d586d7ed249abc1d3014b67cbe6
"wiki": "https://www.mediawiki.org/"
},
"require": {
"wiki": "https://www.mediawiki.org/"
},
"require": {
- "composer/semver": "0.1.0",
+ "composer/semver": "1.0.0",
"cssjanus/cssjanus": "1.1.1",
"ext-iconv": "*",
"liuggio/statsd-php-client": "1.0.16",
"cssjanus/cssjanus": "1.1.1",
"ext-iconv": "*",
"liuggio/statsd-php-client": "1.0.16",
*/
use Composer\Semver\VersionParser;
*/
use Composer\Semver\VersionParser;
-use Composer\Semver\Constraint\VersionConstraint;
+use Composer\Semver\Constraint\Constraint;
class CoreVersionChecker {
/**
class CoreVersionChecker {
/**
- * @var VersionConstraint|bool representing $wgVersion
+ * @var Constraint|bool representing $wgVersion
*/
private $coreVersion = false;
*/
private $coreVersion = false;
public function __construct( $coreVersion ) {
$this->versionParser = new VersionParser();
try {
public function __construct( $coreVersion ) {
$this->versionParser = new VersionParser();
try {
- $this->coreVersion = new VersionConstraint(
+ $this->coreVersion = new Constraint(
'==',
$this->versionParser->normalize( $coreVersion )
);
'==',
$this->versionParser->normalize( $coreVersion )
);