Change record status: 
Project: 
Introduced in branch: 
9.1.x
Introduced in version: 
9.1.0
Description: 

In order to minimize the need to include files containing constants in the global namespace, four global constants have been deprecated. and moved into core/lib/Drupal.php

  • Instead of DRUPAL_MINIMUM_PHP, use \Drupal::MINIMUM_PHP.
  • Instead of DRUPAL_MINIMUM_SUPPORTED_PHP, use \Drupal::MINIMUM_SUPPORTED_PHP .
  • Instead of DRUPAL_RECOMMENDED_PHP, use \Drupal::RECOMMENDED_PHP.
  • Instead of DRUPAL_MINIMUM_PHP_MEMORY_LIMIT, use \Drupal::MINIMUM_PHP_MEMORY_LIMIT.
Impacts: 
Module developers