Skip to content

Commit 7b42cba

Browse files
committed
Apply phpcs
1 parent cd66af6 commit 7b42cba

File tree

6 files changed

+5
-13
lines changed

6 files changed

+5
-13
lines changed

rector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
declare(strict_types=1);
44

5+
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
56
use Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector;
67
use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector;
78
use Rector\CodingStyle\Rector\ClassConst\VarConstantCommentRector;
@@ -10,6 +11,7 @@
1011
use Rector\Config\RectorConfig;
1112
use Rector\EarlyReturn\Rector\If_\ChangeOrIfReturnToEarlyReturnRector;
1213
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
14+
use Rector\Php81\Rector\ClassConst\FinalizePublicClassConstantRector;
1315
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
1416
use Rector\Set\ValueObject\LevelSetList;
1517
use Rector\Set\ValueObject\SetList;
@@ -70,5 +72,7 @@
7072
// Totally pointless "improvements"
7173
CatchExceptionNameMatchingTypeRector::class,
7274
SplitDoubleAssignRector::class,
75+
FinalizePublicClassConstantRector::class,
76+
FlipTypeControlToUseExclusiveTypeRector::class,
7377
]);
7478
};

src/MutableTraverserInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@
99
interface MutableTraverserInterface extends TraverserInterface
1010
{
1111
/**
12-
* @param VisitorInterface $visitor
13-
*
1412
* @return $this
1513
*/
1614
public function append(VisitorInterface $visitor): self;
1715

1816
/**
19-
* @param VisitorInterface $visitor
20-
*
2117
* @return $this
2218
*/
2319
public function prepend(VisitorInterface $visitor): self;

src/Node/Stmt/TypesListNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
class TypesListNode extends Statement
88
{
9-
/**
10-
* @param Statement $type
11-
*/
129
public function __construct(
1310
public readonly Statement $type,
1411
) {

src/Traverser.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ public function __construct(iterable $visitors = [])
2626

2727
/**
2828
* @param list<VisitorInterface> $visitors
29-
*
30-
* @return self
3129
*/
3230
public static function new(iterable $visitors = []): self
3331
{

src/Traverser/VisitorInterface.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@ interface VisitorInterface
1414
public function before(): void;
1515

1616
/**
17-
* @param Node $node
18-
*
1917
* @return ?Command
2018
*/
2119
public function enter(Node $node): ?Command;
2220

2321
/**
24-
* @param Node $node
2522
*
2623
* @return void
2724
*/

tests/Feature/CompatibilityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected function onFail(\Throwable $e, string $expr, string $location): void
127127
\str_contains($expr, '>>') ||
128128
// Psr\EventDispatcher\ListenerProviderInterface phpdoc bug
129129
\str_contains($expr, 'iterable[callable]') ||
130-
// Non-const expression in typedef (will not supported)
130+
// Non-const expression in typedef (will not support)
131131
\str_contains($expr, 'func_num_args() > ') ||
132132
// PHPDoc bug: https://github.com/phpDocumentor/ReflectionDocBlock/issues/351
133133
\str_ends_with($expr, 'string[]}>}|array}|null')

0 commit comments

Comments
 (0)