You are here

protected function BlacklistPhp72Versions::getUnsupportedVersionConstraint in Automatic Updates 8

Get the unsupported PHP version constraint.

Return value

\Composer\Semver\Constraint\ConstraintInterface The version constraint.

Overrides SupportedPhpVersion::getUnsupportedVersionConstraint

File

src/ReadinessChecker/BlacklistPhp72Versions.php, line 17

Class

BlacklistPhp72Versions
Blacklisted PHP 7.2 version checker.

Namespace

Drupal\automatic_updates\ReadinessChecker

Code

protected function getUnsupportedVersionConstraint() {
  $parser = new VersionParser();

  // Rather than make things complicated with cli vs non-cli PHP and
  // differences in their support of opcache, libsodium and Sodium_Compat,
  // simply blacklist the entire version range to ensure the best possible
  // and coherent update support.
  return $parser
    ->parseConstraints('>=7.2.0 <=7.2.2');
}