jenkins-bot has submitted this change and it was merged.
Change subject: Upgrade composer/semver to 1.0.0
......................................................................
Upgrade composer/semver to 1.0.0
And update the class names that changed.
Bug: T113431
Change-Id: Icf73630e60fe7d586d7ed249abc1d3014b67cbe6
(cherry picked from commit 11b77f3d52564fce296d0ab8a2866e8a6736098b)
---
M composer.json
M includes/registration/CoreVersionChecker.php
2 files changed, 4 insertions(+), 4 deletions(-)
Approvals:
Jforrester: Looks good to me, approved
jenkins-bot: Verified
diff --git a/composer.json b/composer.json
index 9c8413d..282f9da 100644
--- a/composer.json
+++ b/composer.json
@@ -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",
diff --git a/includes/registration/CoreVersionChecker.php
b/includes/registration/CoreVersionChecker.php
index a7a926c..f64d826 100644
--- a/includes/registration/CoreVersionChecker.php
+++ b/includes/registration/CoreVersionChecker.php
@@ -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 @@
class CoreVersionChecker {
/**
- * @var VersionConstraint|bool representing $wgVersion
+ * @var Constraint|bool representing $wgVersion
*/
private $coreVersion = false;
@@ -41,7 +41,7 @@
public function __construct( $coreVersion ) {
$this->versionParser = new VersionParser();
try {
- $this->coreVersion = new VersionConstraint(
+ $this->coreVersion = new Constraint(
'==',
$this->versionParser->normalize( $coreVersion )
);
--
To view, visit https://gerrit.wikimedia.org/r/243034
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Icf73630e60fe7d586d7ed249abc1d3014b67cbe6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_26
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits