Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment