Commit 4f200d67 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #3260908 by Liam Morland: Increase minimum to PHP 8.0.2

parent b8fe9636
Loading
Loading
Loading
Loading
+4 −2
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]),
          ],
          'status' => [
            'data' => $this->t('Version @version', ['@version' => $version]),