Unverified Commit 2dd12f90 authored by alexpott's avatar alexpott
Browse files

Issue #3073988 by baikho: Wrong namespace in deprecation message drupal_set_time_limit()

parent 9c171f8d
......@@ -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);
}
......
......@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment