From 007335dadfcda18330bb853a73bf451ed41c8254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Thu, 30 Jan 2025 17:15:58 +0100 Subject: [PATCH] chore(rector): Enable Nextcloud 25 set for the apps folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- build/rector.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/rector.php b/build/rector.php index b6e46c1e53a..1cc613499c6 100644 --- a/build/rector.php +++ b/build/rector.php @@ -7,6 +7,7 @@ declare(strict_types=1); * SPDX-License-Identifier: AGPL-3.0-only */ +use Nextcloud\Rector\Set\NextcloudSets; use PhpParser\Node; use Rector\CodingStyle\Contract\ClassNameImport\ClassNameImportSkipVoterInterface; use Rector\Config\RectorConfig; @@ -72,6 +73,9 @@ $config = RectorConfig::configure() ->withConfiguredRule(ClassPropertyAssignToConstructorPromotionRector::class, [ 'inline_public' => true, 'rename_property' => true, + ]) + ->withSets([ + NextcloudSets::NEXTCLOUD_25, ]); $config->registerService(NextcloudNamespaceSkipVoter::class, tag:ClassNameImportSkipVoterInterface::class);