File tree Expand file tree Collapse file tree 4 files changed +19
-16
lines changed Expand file tree Collapse file tree 4 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG for PHP CS Fixer: custom fixers
22
3+ ## v3.34.0
4+ - Add PhpdocPropertySortedFixer
5+
36## v3.33.0
47- Add PhpDocPropertySorterFixer
58- Deprecate PhpdocTagNoNamedArgumentsFixer - use "phpdoc_tag_no_named_arguments"
Original file line number Diff line number Diff line change @@ -461,19 +461,6 @@ Configuration options:
461461+ echo 01234567; // octal
462462```
463463
464- #### PhpDocPropertySorterFixer
465- Sorts @property annotations in PHPDoc blocks alphabetically within groups separated by empty lines.
466- ``` diff
467- <?php
468- /**
469- - * @property string $zzz
470- * @property int $aaa
471- * @property bool $mmm
472- + * @property string $zzz
473- */
474- class Foo {}
475- ```
476-
477464#### PhpUnitAssertArgumentsOrderFixer
478465PHPUnit assertions must have expected argument before actual one.
479466 * Risky: when original PHPUnit methods are overwritten.*
@@ -615,6 +602,19 @@ The `@param` annotations must have a type.
615602 function a($foo, $bar) {}
616603```
617604
605+ #### PhpdocPropertySortedFixer
606+ Sorts @property annotations in PHPDoc blocks alphabetically within groups separated by empty lines.
607+ ``` diff
608+ <?php
609+ /**
610+ - * @property string $zzz
611+ * @property int $aaa
612+ * @property bool $mmm
613+ + * @property string $zzz
614+ */
615+ class Foo {}
616+ ```
617+
618618#### PhpdocSelfAccessorFixer
619619In PHPDoc, the class or interface element ` self ` must be used instead of the class name itself.
620620``` diff
Original file line number Diff line number Diff line change 2121/**
2222 * @no-named-arguments
2323 */
24- final class PhpDocPropertySorterFixer extends AbstractFixer
24+ final class PhpdocPropertySortedFixer extends AbstractFixer
2525{
2626 public function getDefinition (): FixerDefinitionInterface
2727 {
Original file line number Diff line number Diff line change 1414/**
1515 * @internal
1616 *
17- * @covers \PhpCsFixerCustomFixers\Fixer\PhpDocPropertySorterFixer
17+ * @covers \PhpCsFixerCustomFixers\Fixer\PhpdocPropertySortedFixer
1818 */
19- final class PhpDocPropertySorterFixerTest extends AbstractFixerTestCase
19+ final class PhpdocPropertySortedFixerTest extends AbstractFixerTestCase
2020{
2121 public function testIsRisky (): void
2222 {
You can’t perform that action at this time.
0 commit comments