More PHP8.4 updates

This commit is contained in:
James Cole
2025-05-04 13:47:00 +02:00
parent e42107c03c
commit 51e86448c7
195 changed files with 524 additions and 715 deletions

View File

@@ -90,9 +90,7 @@ class FireflyServiceProvider extends ServiceProvider
public function boot(): void
{
Validator::resolver(
static function ($translator, $data, $rules, $messages) {
return new FireflyValidator($translator, $data, $rules, $messages);
}
static fn($translator, $data, $rules, $messages) => new FireflyValidator($translator, $data, $rules, $messages)
);
}
@@ -101,78 +99,57 @@ class FireflyServiceProvider extends ServiceProvider
*
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
*/
#[\Override]
public function register(): void
{
$this->app->bind(
'preferences',
static function () {
return new Preferences();
}
static fn() => new Preferences()
);
$this->app->bind(
'fireflyconfig',
static function () {
return new FireflyConfig();
}
static fn() => new FireflyConfig()
);
$this->app->bind(
'navigation',
static function () {
return new Navigation();
}
static fn() => new Navigation()
);
$this->app->bind(
'amount',
static function () {
return new Amount();
}
static fn() => new Amount()
);
$this->app->bind(
'steam',
static function () {
return new Steam();
}
static fn() => new Steam()
);
$this->app->bind(
'balance',
static function () {
return new Balance();
}
static fn() => new Balance()
);
$this->app->bind(
'expandedform',
static function () {
return new ExpandedForm();
}
static fn() => new ExpandedForm()
);
$this->app->bind(
'accountform',
static function () {
return new AccountForm();
}
static fn() => new AccountForm()
);
$this->app->bind(
'currencyform',
static function () {
return new CurrencyForm();
}
static fn() => new CurrencyForm()
);
$this->app->bind(
'piggybankform',
static function () {
return new PiggyBankForm();
}
static fn() => new PiggyBankForm()
);
$this->app->bind(
'ruleform',
static function () {
return new RuleForm();
}
static fn() => new RuleForm()
);
// chart generator: