Skip to content

Commit

Permalink
skip NarrowUnusedSetUpDefinedPropertyRector as buggy with default value
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Nov 5, 2024
1 parent 9773ed1 commit e63774d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
use Utils\Rector\PassStrictParameterToFunctionParameterRector;
use Utils\Rector\RemoveErrorSuppressInTryCatchStmtsRector;
use Utils\Rector\UnderscoreToCamelCaseVariableNameRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\NarrowUnusedSetUpDefinedPropertyRector;

return RectorConfig::configure()
->withPhpSets(php81: true)
Expand Down Expand Up @@ -176,6 +177,9 @@

// Unnecessary (string) is inserted
NullToStrictStringFuncCallArgRector::class,

// buggy with default value
NarrowUnusedSetUpDefinedPropertyRector::class,
])
// auto import fully qualified class names
->withImportNames(removeUnusedImports: true)
Expand Down

0 comments on commit e63774d

Please sign in to comment.