Problem/Motivation
* @deprecated in drupal:8.3.0 and is removed from drupal:10.0.0.
* Use \Drupal::time()->getRequestTime();
*/
define('REQUEST_TIME', (int) $_SERVER['REQUEST_TIME']);
We did not complete the removal of this in time for Drupal 10, and so we need to bump it to Drupal 11.
Steps to reproduce
Proposed resolution
Update the deprecation notice and any other references.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3318985-2.patch | 535 bytes | andypost |
Comments
Comment #2
andypostHere's patch but
phpstan-drupalwill also need to fix it in https://github.com/mglaman/phpstan-drupal/blob/1.1.25/src/Rules/Deprecat...There's 23 usages left
Comment #3
longwaveThank you @andypost.
Comment #4
alexpottCommitted and pushed 29f7f401a0 to 10.1.x and a1d293d751 to 10.0.x and 79d3892aed to 9.5.x and ed12a35c95 to 9.4.x. Thanks!
Comment #9
andypostFiled https://github.com/mglaman/phpstan-drupal/issues/483
Comment #10
longwave