1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- --TEST--
- Integration of fixers: Anonymous class /w PHPDoc and attributes on separate line.
- --RULESET--
- {"@PhpCsFixer": true}
- --EXPECT--
- <?php
- $a = new
- /** @property string $x */
- class {};
- $b = new
- #[X]
- class {};
- $c = new
- /** @property string $x */
- #[X] #[Y\Z]
- class {};
- class Z {}
- $d = new
- #[X] // comment
- class {};
- --INPUT--
- <?php
- $a = new
- /** @property string $x */
- class() {};
- $b = new
- #[X]
- class() {};
- $c = new
- /** @property string $x */
- #[X] #[Y\Z]
- class() {};
- class Z {}
- $d = new
- #[X] // comment
- class() {};
|