PhpRequirements::$phpEolDates

Same name in other branches
  1. 10 core/lib/Drupal/Core/Utility/PhpRequirements.php \Drupal\Core\Utility\PhpRequirements::phpEolDates
  2. 11.x core/lib/Drupal/Core/Utility/PhpRequirements.php \Drupal\Core\Utility\PhpRequirements::phpEolDates

The expected PHP version end-of-life dates, keyed by PHP minor version.

The array keys are in 'major.minor' format, and the date values are in ISO 8601 format.

An array of end-of-life dates in ISO 8601 format, keyed by the PHP minor version in 'major.minor' format. The list must be sorted in an ascending order by the date. Multiple versions EOL on the same day must be sorted by the PHP version.

Type: string[]

File

core/lib/Drupal/Core/Utility/PhpRequirements.php, line 33

Class

PhpRequirements
Provides an object for dynamically identifying the minimum supported PHP.

Namespace

Drupal\Core\Utility

Code

private static $phpEolDates = [
    '7.3' => '2021-12-06',
    '7.4' => '2022-11-28',
    '8.0' => '2023-11-26',
    '8.1' => '2024-11-25',
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.