Skip to content

Commit

Permalink
Upgrade Rector and fix new issues (#1961)
Browse files Browse the repository at this point in the history
* Upgrade Rector and fix new issues

* Revert removed PHPDocs and skip `MixedTypeRector` as it seems there is a bug

See rectorphp/rector#8633

* Update lock file
  • Loading branch information
maks-rafalko committed May 14, 2024
1 parent a3dfe76 commit df56e28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;

return RectorConfig::configure()
Expand All @@ -43,6 +44,12 @@
])
->withPhpSets(php81: true)
->withSkip([
MixedTypeRector::class => [
// see https://github.com/rectorphp/rector/issues/8633
__DIR__ . '/src/TestFramework/Coverage/BufferedSourceFileFilter.php',
__DIR__ . '/src/TestFramework/Coverage/CoveredTraceProvider.php',
__DIR__ . '/src/TestFramework/Coverage/UnionTraceProvider.php',
],
ReadOnlyPropertyRector::class => [
// property can't be readonly as it's returned by reference and may be updated
__DIR__ . '/src/TestFramework/Coverage/TestLocations.php',
Expand Down

0 comments on commit df56e28

Please sign in to comment.