Skip to content

Commit be24809

Browse files
committed
- let Rector skip RecastingRemovalRector to resolve PHPStan type conflict with Symfony command output.
1 parent 49c2900 commit be24809

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rector.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
return RectorConfig::configure()
1313
// Define paths to be analyzed by Rector
1414
->withPaths([
15-
__DIR__.'/src',
16-
__DIR__.'/tests',
15+
__DIR__ . '/src',
16+
__DIR__ . '/tests',
1717
])
1818

1919
// For Symfony projects, load the container XML to enable smarter refactoring based on service definitions.
2020
// Adjust the path according to your Symfony version and environment.
2121
// Typically, it's located at var/cache/{env}/App_Kernel{Env}DebugContainer.xml
22-
->withSymfonyContainerXml(__DIR__.'/var/cache/dev/App_KernelDevDebugContainer.xml')
22+
->withSymfonyContainerXml(__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml')
2323

2424
// Apply framework-specific rules based on Composer dependencies.
2525
// This enables automatic refactoring for frameworks like Symfony, Doctrine, etc., including version upgrades.
@@ -81,4 +81,5 @@
8181
// SetList::DEAD_CODE => [
8282
// __DIR__ . '/src/SpecificFileWithFalsePositive.php',
8383
// ],
84+
Rector\DeadCode\Rector\Cast\RecastingRemovalRector::class,
8485
]);

0 commit comments

Comments
 (0)