Skip to content

StandaloneLinePromotedPropertyFixer impacts multiple attributes on the same line #77

@gnutix

Description

@gnutix

Hello there,

A picture is worth a 1000 words:

    ---------- begin diff ----------
@@ -8,9 +8,11 @@
 class SomeClass
 {
     public function __construct(
-        #[JMS\Expose, JMS\Type('integer')]
+        #[JMS\Expose,
+        JMS\Type('integer')]
         private int $id,
-        #[JMS\Expose, JMS\Type('string')]
+        #[JMS\Expose,
+        JMS\Type('string')]
         private string $externalId = '',
     ) {}
    ----------- end diff -----------

Applied checkers:
 * Symplify\CodingStandard\Fixer\Spacing\StandaloneLinePromotedPropertyFixer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions