Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineBreakBetweenMethodArgumentsFixer construct docblock and promoted property error #208

Open
juliangut opened this issue Dec 13, 2023 · 0 comments

Comments

@juliangut
Copy link

Have a look at the following

 #[PHPAttribute(PHPAttribute::TARGET_PROPERTY)]
 final class Attribute
 {
     public function __construct(
         protected ?string $name = null,
         protected ?string $getter = null,
         protected ?string $setter = null,
         /**
          * @var list<string>
-         */
-         protected array $groups = [],
+        */ protected array $groups = [],
    ) {}
}

Somehow it only happens when the docblock for the promoted property is defined as an array/list, I have plenty of other examples without any problem

public function __construct(
    /**
     * @var class-string<object> $class
     */
    protected string $class,
    protected string $name,
) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant