BlacklistPhp72Versions.php in Automatic Updates 8
File
src/ReadinessChecker/BlacklistPhp72Versions.php
View source
<?php
namespace Drupal\automatic_updates\ReadinessChecker;
use Composer\Semver\VersionParser;
use Drupal\Core\StringTranslation\StringTranslationTrait;
class BlacklistPhp72Versions extends SupportedPhpVersion {
use StringTranslationTrait;
protected function getUnsupportedVersionConstraint() {
$parser = new VersionParser();
return $parser
->parseConstraints('>=7.2.0 <=7.2.2');
}
protected function getMessage() {
return $this
->t('PHP 7.2.0, 7.2.1 and 7.2.2 have issues with opcache that breaks signature validation. Please upgrade to a newer version of PHP to ensure assurance and security for package signing.');
}
}