Skip to content

Rector breaks single line annotation  #3231

@stephanvierkant

Description

@stephanvierkant

Bug Report

Subject Details
Rector version v0.7.0.-v0.7.17 (and online: 0.8.x-dev@a2e11ba)
Installed as composer dependency
-    /** @ORM\Column(name="ip", type="string", length=255) */
+    /** @ORM\Column(name="ip", type="string", length=255)
     private ?string $ip = '';

-    /** @ORM\Column(name="url", type="string", length=255) */
+    /** @ORM\Column(name="url", type="string", length=255)
     private ?string $url = '';

Minimal PHP Code Causing Issue

https://getrector.org/demo/00f65708-ba6d-4285-99b7-88a97147486d#result

Expected Behaviour

The line should stay the same; there's nothing wrong with it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions