# Bug Report <!-- First, thank you for reporting a bug. That takes time and we appreciate that! --> | Subject | Details | | :------------- | :--------------------| | Rector version | last dev-main | | Installed as | composer dependency | ## Minimal PHP Code Causing Issue See https://getrector.com/demo/1ea29bcf-820f-4b15-865b-5813921292f8 ```php <?php namespace Symfony\Component\Routing\Annotation { class Route {} class Foo { /** * @Route("/some/{id}", defaults={"id" = null}) */ public function indexAction() { } } } ``` ### Responsible rules * `AnnotationToAttributeRector` ## Expected Behavior ```diff - #[Route(path: '/some/{id}', defaults: ['id' => 'null'])] + #[Route(path: '/some/{id}', defaults: ['id' => null])] ``` <!-- How should Rector change the code? Or should Rector skip it? -->