Drupal::RECOMMENDED_PHP

Same name in other branches
  1. 9 core/lib/Drupal.php \Drupal::RECOMMENDED_PHP
  2. 11.x core/lib/Drupal.php \Drupal::RECOMMENDED_PHP

Minimum recommended version of PHP.

Sites installing Drupal on PHP versions lower than this will see a warning message, but Drupal can still be installed. Used for (e.g.) PHP versions that have reached their EOL or will in the near future.

3 uses of Drupal::RECOMMENDED_PHP
DrupalTest::testPhpConstants in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the PHP constants have consistent values.
PhpRequirementTest::testStatusPage in core/modules/system/tests/src/Functional/System/PhpRequirementTest.php
Tests status report messages regarding the PHP version.
system_requirements in core/modules/system/system.install
Implements hook_requirements().

File

core/lib/Drupal.php, line 134

Class

Drupal
Static Service Container wrapper.

Code

const RECOMMENDED_PHP = '8.3.0';

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