Changes for src/Form/UpgradeStatusForm.php: 4 added lines, 2 removed lines.
Original line number
Diff line number
Diff line
@@ -725,7 +725,9 @@ MARKUP
// Check PHP version.
$version=PHP_VERSION;
if(version_compare($version,'8.0.0')>=0){
// The value of MINIMUM_PHP in Drupal 10.
$minimum_php='8.0.2';
if(version_compare($version,$minimum_php)>=0){
$class='no-known-error';
}
else{
@@ -737,7 +739,7 @@ MARKUP
'data'=>[
'requirement'=>[
'class'=>'requirement-label',
'data'=>$this->t('PHP version should be at least 8.0.0. Before updating to PHP 8, use <code>$ composer why-not php:8</code> to check if any projects need updating for compatibility. Also check custom projects manually.'),
'data'=>$this->t('PHP version should be at least @minimum_php. Before updating to PHP 8, use <code>$ composer why-not php:8</code> to check if any projects need updating for compatibility. Also check custom projects manually.',['@minimum_php'=>$minimum_php]),