|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace Symplify\CodingStandard\Tests\Fixer\Spacing\StandaloneLinePromotedPropertyFixer\Fixture; |
| 4 | + |
| 5 | +final class SkipAttributes |
| 6 | +{ |
| 7 | + public function __construct(#[JMS\Expose, JMS\Type('integer')] private int $id, private string $name) {} |
| 8 | +} |
| 9 | + |
| 10 | +final class SkipAttributes2 |
| 11 | +{ |
| 12 | + public function __construct( |
| 13 | + #[JMS\Expose, JMS\Type('integer')] |
| 14 | + private int $id, |
| 15 | + private string $name, |
| 16 | + ) {} |
| 17 | +} |
| 18 | + |
| 19 | +final class SkipAttributes3 |
| 20 | +{ |
| 21 | + public function __construct( |
| 22 | + #[JMS\Expose, JMS\Type('integer')] private int $id, |
| 23 | + private string $name, |
| 24 | + ) {} |
| 25 | +} |
| 26 | + |
| 27 | +final class SkipAttributes4 |
| 28 | +{ |
| 29 | + public function __construct( |
| 30 | + #[JMS\Expose] |
| 31 | + #[JMS\Type('integer')] private int $id, |
| 32 | + private string $name, |
| 33 | + ) {} |
| 34 | +} |
| 35 | + |
| 36 | +final class SkipAttributes5 |
| 37 | +{ |
| 38 | + public function __construct( |
| 39 | + #[JMS\Expose] |
| 40 | + #[JMS\Type('integer')] |
| 41 | + private int $id, |
| 42 | + private string $name, |
| 43 | + ) {} |
| 44 | +} |
| 45 | + |
| 46 | +?> |
| 47 | +----- |
| 48 | +<?php |
| 49 | + |
| 50 | +namespace Symplify\CodingStandard\Tests\Fixer\Spacing\StandaloneLinePromotedPropertyFixer\Fixture; |
| 51 | + |
| 52 | +final class SkipAttributes |
| 53 | +{ |
| 54 | + public function __construct( |
| 55 | + #[JMS\Expose, JMS\Type('integer')] private int $id, |
| 56 | + private string $name |
| 57 | + ) {} |
| 58 | +} |
| 59 | + |
| 60 | +final class SkipAttributes2 |
| 61 | +{ |
| 62 | + public function __construct( |
| 63 | + #[JMS\Expose, JMS\Type('integer')] |
| 64 | + private int $id, |
| 65 | + private string $name, |
| 66 | + ) {} |
| 67 | +} |
| 68 | + |
| 69 | +final class SkipAttributes3 |
| 70 | +{ |
| 71 | + public function __construct( |
| 72 | + #[JMS\Expose, JMS\Type('integer')] private int $id, |
| 73 | + private string $name, |
| 74 | + ) {} |
| 75 | +} |
| 76 | + |
| 77 | +final class SkipAttributes4 |
| 78 | +{ |
| 79 | + public function __construct( |
| 80 | + #[JMS\Expose] |
| 81 | + #[JMS\Type('integer')] private int $id, |
| 82 | + private string $name, |
| 83 | + ) {} |
| 84 | +} |
| 85 | + |
| 86 | +final class SkipAttributes5 |
| 87 | +{ |
| 88 | + public function __construct( |
| 89 | + #[JMS\Expose] |
| 90 | + #[JMS\Type('integer')] |
| 91 | + private int $id, |
| 92 | + private string $name, |
| 93 | + ) {} |
| 94 | +} |
| 95 | + |
| 96 | +?> |
0 commit comments