From 42260d2eb471f9f1676b5daa09836328d0ea2e9d Mon Sep 17 00:00:00 2001 From: provokateurin Date: Thu, 9 Oct 2025 17:10:24 +0200 Subject: [PATCH] fix: Fix rector config Signed-off-by: provokateurin --- rector.php | 5 +---- tests/unit/Controller/ApiTest.php | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/rector.php b/rector.php index 32a7586..c41f2ab 100644 --- a/rector.php +++ b/rector.php @@ -9,7 +9,7 @@ __DIR__ . '/lib', __DIR__ . '/tests', ]) - ->withPhpSets(php80: true) + ->withPhpSets(php81: true) ->withPreparedSets( deadCode: true, codeQuality: true, @@ -19,12 +19,9 @@ instanceOf: true, earlyReturn: true, strictBooleans: true, - carbon: true, rectorPreset: true, phpunitCodeQuality: true, doctrineCodeQuality: true, symfonyCodeQuality: true, symfonyConfigs: true, - twig: true, - phpunit: true, ); diff --git a/tests/unit/Controller/ApiTest.php b/tests/unit/Controller/ApiTest.php index 0bb8a45..324510f 100644 --- a/tests/unit/Controller/ApiTest.php +++ b/tests/unit/Controller/ApiTest.php @@ -14,6 +14,6 @@ public function testIndex(): void { $request = $this->createMock(IRequest::class); $controller = new ApiController(Application::APP_ID, $request); - $this->assertEquals($controller->index()->getData()['message'], 'Hello world!'); + $this->assertEquals('Hello world!', $controller->index()->getData()['message']); } }