Skip to content

Commit c2b38b3

Browse files
committed
rule to declare strict types
1 parent 634ee1f commit c2b38b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rector.php

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
77
use Rector\Set\ValueObject\LevelSetList;
88
use Rector\Set\ValueObject\SetList;
9+
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
910

1011
return static function (RectorConfig $rectorConfig): void {
1112
$rectorConfig->paths([
@@ -21,6 +22,10 @@
2122
SetList::STRICT_BOOLEANS,
2223
]);
2324

25+
$rectorConfig->rules([
26+
DeclareStrictTypesRector::class,
27+
]);
28+
2429
$rectorConfig->skip([
2530
MixedTypeRector::class,
2631
]);

0 commit comments

Comments
 (0)