| Subject |
Details |
| Rector version |
e.g. v0.5.20 |
| PHP version |
e.g. PHP 7.3 |
| Full Command |
vendor/bin/rector process --set framework-extra-bundle-50 src |
Current Behaviour
I know, its getting annoying with my issues :)
I found another case I've got sometimes. When the controller has an array return type it doesn't get updated to Response.
/**
* @return array
*/
public function indexAction(): array
{
return $this->render('AppBundle:Module:index.html.twig');
}
Minimal PHP Code Causing Issue
/**
* @Template("AppBundle:Module:index.html.twig")
*
* @return array
*/
public function indexAction(): array
{
return [];
}
Expected Behaviour
/**
* @return Response
*/
public function indexAction(): \Symfony\Component\HttpFoundation\Response
{
return $this->render('AppBundle:Module:index.html.twig');
}
Current Behaviour
I know, its getting annoying with my issues :)
I found another case I've got sometimes. When the controller has an array return type it doesn't get updated to Response.
Minimal PHP Code Causing Issue
Expected Behaviour