Skip to content

Commit aa13fc3

Browse files
committed
feat: remove OrderedDocblock and related tests; update AddMissingMethodPhpDocRector to simplify docblock handling
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent a282876 commit aa13fc3

8 files changed

Lines changed: 122 additions & 552 deletions

File tree

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"friendsofphp/php-cs-fixer": "^3.94",
3737
"jolicode/jolinotif": "^3.3",
3838
"phpdocumentor/shim": "^3.9",
39-
"phpowermove/docblock": "^4.0",
4039
"phpro/grumphp": "^2.19",
4140
"phpspec/prophecy-phpunit": "^2.5",
4241
"phpunit/phpunit": "^12.5",

ecs.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use PhpCsFixer\Fixer\Phpdoc\PhpdocAlignFixer;
2222
use PhpCsFixer\Fixer\Phpdoc\NoEmptyPhpdocFixer;
2323
use PhpCsFixer\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixer;
24+
use PhpCsFixer\Fixer\Phpdoc\PhpdocAddMissingParamAnnotationFixer;
2425
use PhpCsFixer\Fixer\Phpdoc\PhpdocNoEmptyReturnFixer;
2526
use PhpCsFixer\Fixer\Phpdoc\PhpdocToCommentFixer;
2627
use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestCaseStaticMethodCallsFixer;
@@ -50,4 +51,7 @@
5051
])
5152
->withConfiguredRule(PhpUnitTestCaseStaticMethodCallsFixer::class, [
5253
'call_type' => 'self',
54+
])
55+
->withConfiguredRule(PhpdocAddMissingParamAnnotationFixer::class, [
56+
'only_untyped' => false,
5357
]);

rector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use FastForward\DevTools\Rector\AddMissingMethodPhpDocRector;
2323
use FastForward\DevTools\Rector\RemoveEmptyDocBlockRector;
2424
use Rector\Config\RectorConfig;
25+
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector;
2526
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
2627
use Rector\Php\PhpVersionResolver\ComposerJsonPhpVersionResolver;
2728
use Rector\Set\ValueObject\SetList;
@@ -45,6 +46,7 @@
4546
getcwd() . '/vendor',
4647
getcwd() . '/tmp',
4748
RemoveUselessReturnTagRector::class,
49+
RemoveUselessParamTagRector::class,
4850
]);
4951
$rectorConfig->cacheDirectory(getcwd() . '/tmp/cache/rector');
5052
$rectorConfig->importNames();

src/Docblock/OrderedDocblock.php

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)