Commit 01cb9d7c authored by catch's avatar catch
Browse files

Issue #3236243 by daffie, longwave, alexpott: [Symfony 6] Add "callable|false"...

Issue #3236243 by daffie, longwave, alexpott: [Symfony 6] Add "callable|false" type hint to methods overriding Symfony\Component\HttpKernel\Controller\ControllerResolverInterface::getController()
parent 203654b2
Loading
Loading
Loading
Loading
+1 −1
Changes for core/lib/Drupal/Core/Controller/ControllerResolver.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ public function getControllerFromDefinition($controller, $path = '') {
  /**
   * {@inheritdoc}
   */
  public function getController(Request $request) {
  public function getController(Request $request): callable|FALSE {
    if (!$controller = $request->attributes->get('_controller')) {
      return FALSE;
    }