Skip to content

Commit 846afb0

Browse files
committed
Adjust php-cs-fixer rules to perserve strict_types
1 parent ccdeb34 commit 846afb0

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.php-cs-fixer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
'increment_style' => false,
2121
'modernize_strpos' => false,
2222
'get_class_to_class_keyword' => false,
23+
'declare_strict_types' => [
24+
'strategy' => 'enforce'
25+
]
2326
])
2427
->setRiskyAllowed(true)
2528
->setFinder($finder);

rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector;
77
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector;
88
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
9-
use Rector\Privatization\Rector\Class_\FinalizeClassesWithoutChildrenRector;
109
use Rector\Privatization\Rector\Class_\FinalizeTestCaseClassRector;
1110
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
1211
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;

0 commit comments

Comments
 (0)