You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Symfony you can annotate a name and path in a Controller class, which is actually a prefix of controller actions in that class:
/**
* @Route("front", name="front")
*/
final class FrontController extends Controller
{
/**
* @Route("/", name="")
*/
public function homepage() : Response
{
//...
}
}
attribute
> bin/console debug:router
` front GET|POST ANY ANY /front/`
Rector removes the empty name attribute, which means the route is removed.
Bug Report
Minimal PHP Code Causing Issue
https://getrector.org/demo/9dee6b7b-b443-4432-915b-5c22a80a4106#result
Expected Behaviour
An empty attribute is required in this case so it should be untouched.
The text was updated successfully, but these errors were encountered: