Skip to content

Firefly III: a personal finances manager

Push Firefly III to PHP 8.5

James Colefb79e3b08c89
diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php
index b39059ed5b..724120f696 100644
--- a/app/Http/Controllers/Controller.php
+++ b/app/Http/Controllers/Controller.php
@@ -80,13 +80,13 @@ abstract class Controller extends BaseController
View::share('FF_VERSION', config('firefly.version'));
View::share('FF_BUILD_TIME', config('firefly.build_time'));
- // this breaks when running < php 8.5 and is totally intentional.
- // $input = ' James is cool';
- // $output = $input
- // |> trim(...)
- // |> (fn (string $string) => str_replace(' ', '-', $string))
- // |> (fn (string $string) => str_replace(['.', '/', '…'], '', $string))
- // |> strtolower(...);
+ // this breaks when running < PHP 8.5 and is totally intentional.
+ $input = ' James is cool';
+ $output = $input
+ |> trim(...)
+ |> (fn (string $string) => str_replace(' ', '-', $string))
+ |> (fn (string $string) => str_replace(['.', '/', '…'], '', $string))
+ |> strtolower(...);
// is webhooks enabled?
View::share(
diff --git a/composer.json b/composer.json
index fb1eca0187..9066448254 100644
--- a/composer.json
+++ b/composer.json
@@ -65,7 +65,7 @@
}
],
"require": {
- "php": ">=8.4",
+ "php": ">=8.5",
"ext-bcmath": "*",
"ext-curl": "*",
"ext-fileinfo": "*",
@@ -197,7 +197,7 @@
"php-http/discovery": true
},
"platform": {
- "php": "8.4"
+ "php": "8.5"
},
"audit": {
"ignore": {