Commit a7825ea9 authored by catch's avatar catch
Browse files

Issue #3232892 by daffie, Spokje: [Symfony 6] Add "static" type hint to the...

Issue #3232892 by daffie, Spokje: [Symfony 6] Add "static" type hint to the method Drupal\Core\Routing\RequestContext::fromRequest()
parent 30eb18c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ public function fromRequestStack(RequestStack $request_stack) {
  /**
   * {@inheritdoc}
   */
  public function fromRequest(Request $request) {
  public function fromRequest(Request $request): static {
    // @todo Extract the code in DrupalKernel::initializeRequestGlobals.
    //   See https://www.drupal.org/node/2404601
    if (isset($GLOBALS['base_url'])) {