28 lines
648 B
PHP
28 lines
648 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* SPDX-FileCopyrightText: 2024 F7cloud GmbH and F7cloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
|
|
|
|
return RectorConfig::configure()
|
|
->withPaths([
|
|
__DIR__ . '/lib',
|
|
__DIR__ . '/tests',
|
|
])
|
|
->withSkip([
|
|
__DIR__ . '/tests/stubs',
|
|
])
|
|
->withPreparedSets(
|
|
deadCode: true,
|
|
typeDeclarations: true,
|
|
)->withPhpSets(
|
|
php81: true,
|
|
)->withConfiguredRule(ClassPropertyAssignToConstructorPromotionRector::class, [
|
|
'inline_public' => true,
|
|
'rename_property' => true,
|
|
]);
|