Skip to content

Firefly III: a personal finances manager

Add PHP8.0 specific code.

James Cole55538b668fe4
diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php
index 7f436b37e8..b2f066d738 100644
--- a/app/Http/Controllers/HomeController.php
+++ b/app/Http/Controllers/HomeController.php
@@ -105,7 +105,7 @@ class HomeController extends Controller
* @return Factory|RedirectResponse|Redirector|View
* @throws Exception
*/
- public function index(AccountRepositoryInterface $repository)
+ public function index(AccountRepositoryInterface $repository): mixed
{
$types = config('firefly.accountTypesByIdentifier.asset');
$count = $repository->count($types);
diff --git a/composer.json b/composer.json
index 85b19bc44d..0955b5736b 100644
--- a/composer.json
+++ b/composer.json
@@ -69,7 +69,7 @@
}
],
"require": {
- "php": ">=7.4.0",
+ "php": ">=8.0.0",
"ext-bcmath": "*",
"ext-curl": "*",
"ext-fileinfo": "*",