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(); } }