Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Add return types
James Cole9d62b4c70d6d
diff --git a/app/Api/V1/Requests/AccountRequest.php b/app/Api/V1/Requests/AccountRequest.phpindex 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 usersreturn 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.phpindex 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 usersreturn 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',