From 9b8c0a2b97055b17cdf9424e18e335a4165e0043 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 13 Apr 2026 09:49:33 +0200 Subject: [PATCH] refactor: Apply rector changes Signed-off-by: provokateurin --- src/ControllerMethodParameter.php | 3 ++- src/ControllerMethodResponse.php | 3 ++- src/Logger.php | 3 ++- src/LoggerLevel.php | 3 ++- src/UnsupportedExprException.php | 3 ++- tests/lib/Controller/AdminSettingsController.php | 2 +- tests/lib/Controller/RoutingController.php | 6 +++--- 7 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/ControllerMethodParameter.php b/src/ControllerMethodParameter.php index 5bf2c2c..bb15da5 100644 --- a/src/ControllerMethodParameter.php +++ b/src/ControllerMethodParameter.php @@ -1,10 +1,11 @@ '[a-z]+'], defaults: ['param' => 'abc'], root: '/tests', postfix: 'Route')] #[ApiRoute(verb: 'POST', url: '/attribute-ocs/{param}', requirements: ['param' => '[a-z]+'], defaults: ['param' => 'abc'], root: '/tests', postfix: 'ApiRoute')] - public function attributeOCS() { + public function attributeOCS(): \OCP\AppFramework\Http\DataResponse { return new DataResponse(); } @@ -36,7 +36,7 @@ public function attributeOCS() { */ #[Route(Route::TYPE_FRONTPAGE, verb: 'GET', url: '/attribute-index/{param}', requirements: ['param' => '[a-z]+'], defaults: ['param' => 'abc'], root: '/tests', postfix: 'Route')] #[FrontpageRoute(verb: 'POST', url: '/attribute-index/{param}', requirements: ['param' => '[a-z]+'], defaults: ['param' => 'abc'], root: '/tests', postfix: 'FrontpageRoute')] - public function attributeIndex() { + public function attributeIndex(): \OCP\AppFramework\Http\DataResponse { return new DataResponse(); } @@ -47,7 +47,7 @@ public function attributeIndex() { * 200: Success */ #[FrontpageRoute(verb: 'PUT', url: '/attribute-index/{param}', requirements: ['param' => '[a-z]+'], defaults: ['param' => 'abc'], root: '/tests')] - public function csrfIndex() { + public function csrfIndex(): \OCP\AppFramework\Http\DataResponse { return new DataResponse(); } }