forked from wallabag/wallabag
Modernize to PHP 8.1
This commit is contained in:
@ -4,7 +4,6 @@ declare(strict_types=1);
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
|
||||
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
|
||||
|
||||
return RectorConfig::configure()
|
||||
->withPaths([
|
||||
@ -19,13 +18,10 @@ return RectorConfig::configure()
|
||||
->withConfiguredRule(ClassPropertyAssignToConstructorPromotionRector::class, [
|
||||
'inline_public' => true,
|
||||
])
|
||||
->withRules([
|
||||
ReadOnlyPropertyRector::class,
|
||||
])
|
||||
->withSkip([
|
||||
ClassPropertyAssignToConstructorPromotionRector::class => [
|
||||
__DIR__ . '/src/Entity/*',
|
||||
],
|
||||
])
|
||||
->withPhpSets(php80: true)
|
||||
->withPhpSets(php81: true)
|
||||
->withTypeCoverageLevel(0);
|
||||
|
||||
Reference in New Issue
Block a user