Skip to content

Commit cbea67a

Browse files
committed
chore: added rules RenameConstantRector on Rector
1 parent 797eebf commit cbea67a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
use Rector\PHPUnit\CodeQuality\Rector\Class_\RemoveDataProviderParamKeysRector;
3939
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
4040
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
41+
use Rector\Renaming\Rector\ConstFetch\RenameConstantRector;
4142
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
4243
use Rector\Strict\Rector\If_\BooleanInIfConditionRuleFixerRector;
4344
use Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector;
@@ -205,4 +206,7 @@
205206
// keep '\\' prefix string on string '\Foo\Bar'
206207
StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true,
207208
])
209+
->withConfiguredRule(RenameConstantRector::class, [
210+
'FILTER_DEFAULT' => 'FILTER_UNSAFE_RAW',
211+
])
208212
->withCodeQualityLevel(34);

0 commit comments

Comments
 (0)