diff --git a/app/Api/V1/Requests/AccountRequest.php b/app/Api/V1/Requests/AccountRequest.php index 826f294922..d1f9a468ad 100644 --- a/app/Api/V1/Requests/AccountRequest.php +++ b/app/Api/V1/Requests/AccountRequest.php @@ -32,7 +32,7 @@ class AccountRequest extends Request /** * @return bool */ - public function authorize() + public function authorize(): bool { // Only allow authenticated users return auth()->check(); @@ -67,7 +67,7 @@ class AccountRequest extends Request /** * @return array */ - public function rules() + public function rules(): array { $accountRoles = join(',', config('firefly.accountRoles')); $types = join(',', array_keys(config('firefly.subTitlesByIdentifier'))); diff --git a/app/Api/V1/Requests/BillRequest.php b/app/Api/V1/Requests/BillRequest.php index 709722f971..cbef934efe 100644 --- a/app/Api/V1/Requests/BillRequest.php +++ b/app/Api/V1/Requests/BillRequest.php @@ -32,7 +32,7 @@ class BillRequest extends Request /** * @return bool */ - public function authorize() + public function authorize(): bool { // Only allow authenticated users return auth()->check(); @@ -64,7 +64,7 @@ class BillRequest extends Request /** * @return array */ - public function rules() + public function rules(): array { $rules = [ 'name' => 'required|between:1,255|uniqueObjectForUser:bills,name',