diff options
author | Paul Tirk <paultirk@paultirk.com> | 2021-03-28 21:46:07 +0200 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 10:23:11 +0200 |
commit | f358c8213b5110144de207c2571a716dba3f0031 (patch) | |
tree | e9c9ce40f84b59da293633519e0c4130a93907dd /lib/Controller/JSONHttpErrorTrait.php | |
parent | 1208dc8d7190ee3cb7b268083916538059da1c5f (diff) |
add missing type hints
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
Diffstat (limited to 'lib/Controller/JSONHttpErrorTrait.php')
-rw-r--r-- | lib/Controller/JSONHttpErrorTrait.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/JSONHttpErrorTrait.php b/lib/Controller/JSONHttpErrorTrait.php index 3defc47c1..abfef77a1 100644 --- a/lib/Controller/JSONHttpErrorTrait.php +++ b/lib/Controller/JSONHttpErrorTrait.php @@ -30,7 +30,7 @@ trait JSONHttpErrorTrait * @param int $code * @return \OCP\AppFramework\Http\JSONResponse */ - public function errorResponseWithExceptionV2(\Exception $exception, $code) + public function errorResponseWithExceptionV2(\Exception $exception, int $code): JSONResponse { return $this->errorResponseV2( $exception->getMessage(), @@ -45,7 +45,7 @@ trait JSONHttpErrorTrait * @param int $httpStatusCode * @return \OCP\AppFramework\Http\JSONResponse */ - public function errorResponseV2(string $message, int $code, int $httpStatusCode) + public function errorResponseV2(string $message, int $code, int $httpStatusCode): JSONResponse { return new JSONResponse([ 'error' => [ |