diff --git a/core/includes/common.inc b/core/includes/common.inc index 374d1882a720d33be5fdaf3fb3aff912819fc220..c2f74d9a8385024d82b9a69a4113ac5c4deb1b8a 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -409,12 +409,12 @@ function drupal_http_header_attributes(array $attributes = []) { * @ingroup php_wrappers * * @deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use - * \Drupal\Core\Environment::setTimeLimit() instead. + * \Drupal\Component\Utility\Environment::setTimeLimit() instead. * * @see https://www.drupal.org/node/3000058 */ function drupal_set_time_limit($time_limit) { - @trigger_error('drupal_set_time_limit() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Environment::setTimeLimit() instead. See https://www.drupal.org/node/3000058.', E_USER_DEPRECATED); + @trigger_error('drupal_set_time_limit() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Component\Utility\Environment::setTimeLimit() instead. See https://www.drupal.org/node/3000058.', E_USER_DEPRECATED); Environment::setTimeLimit($time_limit); } diff --git a/core/tests/Drupal/KernelTests/Core/Common/LegacyFunctionsTest.php b/core/tests/Drupal/KernelTests/Core/Common/LegacyFunctionsTest.php index 1def45ee22d6cf6b598d9d9f533f513ac2fe8df9..366e2acdaba6ac3b268ee48eb4d6202261fda6ce 100644 --- a/core/tests/Drupal/KernelTests/Core/Common/LegacyFunctionsTest.php +++ b/core/tests/Drupal/KernelTests/Core/Common/LegacyFunctionsTest.php @@ -24,7 +24,7 @@ public function testFormatDate() { } /** - * @expectedDeprecation drupal_set_time_limit() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Environment::setTimeLimit() instead. See https://www.drupal.org/node/3000058. + * @expectedDeprecation drupal_set_time_limit() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Component\Utility\Environment::setTimeLimit() instead. See https://www.drupal.org/node/3000058. * @doesNotPerformAssertions */ public function testDrupalSetTimeLimit() {