"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",
*/
use Composer\Semver\VersionParser;
-use Composer\Semver\Constraint\VersionConstraint;
+use Composer\Semver\Constraint\Constraint;
/**
* @since 1.26
class CoreVersionChecker {
/**
- * @var VersionConstraint|bool representing $wgVersion
+ * @var Constraint|bool representing $wgVersion
*/
private $coreVersion = false;
public function __construct( $coreVersion ) {
$this->versionParser = new VersionParser();
try {
- $this->coreVersion = new VersionConstraint(
+ $this->coreVersion = new Constraint(
'==',
$this->versionParser->normalize( $coreVersion )
);