Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 438 Bytes

method_to_route_annotation.md

File metadata and controls

24 lines (19 loc) · 438 Bytes

method_to_route_annotation

Configuration examples

$config = PhpCsFixer\Config::create()
    ->setRules([
        'Jsamson/method_to_route_annotation' => true,
       
    ])
    ->registerCustomFixers([
        new JSamson\CS\Fixer\Deprecation\MethodToRouteAnnotationFixer,
    ])
;

Fixes

     /**
-     * @Route(name="foo", path="foo")
+     * @Route(name="foo", path="foo", methods={"GET"})
      */