Make Firefly III PHP 8.5 only.

This commit is contained in:
James Cole
2026-02-14 13:10:41 +01:00
parent 567f2dae17
commit 4e88ebd52d
3 changed files with 12 additions and 7 deletions

View File

@@ -80,6 +80,14 @@ 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(...);
// is webhooks enabled?
View::share(
'featuringWebhooks',