You are here

constant Drupal::RECOMMENDED_PHP in Drupal 10

Same name and namespace in other branches
  1. 9 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 124

Class

Drupal
Static Service Container wrapper.

Code

const RECOMMENDED_PHP = '8.1.6';