Skip to content

RenameClassRector wrongly aligns multiline comments #1522

@Aerendir

Description

@Aerendir

Rector v0.5.3

    ---------- begin diff ----------
--- Original
+++ New
@@ -218,8 +218,7 @@

     /**
      * @param string      $orderSrcId
-     * @param string|null $channelId  Also if we do the check in the self::execute method,
-     *                                allow for null to make PHPStan pass
+     * @param string|null $channelId  Also if we do the check in the self::execute method,                                allow for null to make PHPStan pass
      * @param bool        $force
      * @param bool        $debug
      *
@@ -254,8 +253,7 @@
     }

     /**
-     * @param string|null $channelId Also if we do the check in the self::execute method,
-     *                               allow for null to make PHPStan pass
+     * @param string|null $channelId Also if we do the check in the self::execute method,                               allow for null to make PHPStan pass
      * @param bool        $force
      * @param bool        $debug
      *
    ----------- end diff -----------

Applied rectors:

 * Rector\Rector\Class_\RenameClassRector

UPDATE

I'm trying to reproduce the issue in a failing test case but I'm not able to do so.

Maybe the change is done in other places by other rectors... I don't know...

Also using the same exact function in the failing test case, copied-and-pasted from my class, the tests still pass.

Any ideas?

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