* Forward-compatibility shim for Symfony's RequestStack.
*
* @todo Remove when Symfony 5.3 or greater is required.
* @todo https://www.drupal.org/node/3265121 Remove in Drupal 10.0.x.
*/
classRequestStackextendsSymfonyRequestStack{
@@ -31,7 +31,7 @@ public function getMainRequest(): ?Request {
* {@inheritdoc}
*/
publicfunctiongetMasterRequest(){
@trigger_error('Drupal\Core\Http\RequestStack::getMasterRequest() is deprecated, use getMainRequest() instead.',E_USER_DEPRECATED);
@trigger_error(__METHOD__.'() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use getMainRequest() instead. See https://www.drupal.org/node/3253744',E_USER_DEPRECATED);
@@ -19,7 +19,7 @@ class RequestStackLegacyTest extends UnitTestCase {
publicfunctiontestGetMasterRequestDeprecation(){
$stack=newRequestStack();
$this->expectDeprecation('Drupal\Core\Http\RequestStack::getMasterRequest() is deprecated, use getMainRequest() instead.');
$this->expectDeprecation('Drupal\Core\Http\RequestStack::getMasterRequest() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use getMainRequest() instead. See https://www.drupal.org/node/3253744');