PhpRequirements::$phpEolDates

Same name in other branches
  1. 9 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 = [
    '8.1' => '2025-12-31',
    '8.2' => '2026-12-31',
    '8.3' => '2027-12-31',
];

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