coding-standard
coding-standard copied to clipboard
StandaloneLinePromotedPropertyFixer impacts multiple attributes on the same line
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
Hey, sounds valid. Care to send PR?
$ claude
> 💮 Pullrequesting... 🤖
https://github.com/symplify/coding-standard/pull/78