Upgrade composer/semver to 1.0.0
authorKunal Mehta <legoktm@gmail.com>
Fri, 25 Sep 2015 01:15:49 +0000 (18:15 -0700)
committerBryanDavis <bdavis@wikimedia.org>
Thu, 1 Oct 2015 21:21:04 +0000 (21:21 +0000)
And update the class names that changed.

Bug: T113431
Change-Id: Icf73630e60fe7d586d7ed249abc1d3014b67cbe6

composer.json
includes/registration/CoreVersionChecker.php

index 2fadfea..6f859bd 100644 (file)
@@ -16,7 +16,7 @@
                "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",
index a7a926c..f64d826 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 use Composer\Semver\VersionParser;
-use Composer\Semver\Constraint\VersionConstraint;
+use Composer\Semver\Constraint\Constraint;
 
 /**
  * @since 1.26
@@ -26,7 +26,7 @@ use Composer\Semver\Constraint\VersionConstraint;
 class CoreVersionChecker {
 
        /**
-        * @var VersionConstraint|bool representing $wgVersion
+        * @var Constraint|bool representing $wgVersion
         */
        private $coreVersion = false;
 
@@ -41,7 +41,7 @@ class CoreVersionChecker {
        public function __construct( $coreVersion ) {
                $this->versionParser = new VersionParser();
                try {
-                       $this->coreVersion = new VersionConstraint(
+                       $this->coreVersion = new Constraint(
                                '==',
                                $this->versionParser->normalize( $coreVersion )
                        );