Skip to content

Firefly III: a personal finances manager

Auto commit for release 'develop' on 2025-02-12

github-actions295feedd77b9
diff --git a/app/Support/Report/Summarizer/TransactionSummarizer.php b/app/Support/Report/Summarizer/TransactionSummarizer.php
index 82b67c7de0..941b83121e 100644
--- a/app/Support/Report/Summarizer/TransactionSummarizer.php
+++ b/app/Support/Report/Summarizer/TransactionSummarizer.php
@@ -64,7 +64,7 @@ class TransactionSummarizer
$currencyDecimalPlaces = $journal['currency_decimal_places'];
// prepare foreign currency info:
- $foreignCurrencyId = 0;
+ $foreignCurrencyId = 0;
if ($this->convertToNative) {
// if convert to native, use the native amount yes or no?
@@ -92,8 +92,8 @@ class TransactionSummarizer
if (!$this->convertToNative) {
Log::debug(sprintf('Journal #%d also includes foreign amount (foreign is %s)', $journal['transaction_journal_id'], $journal['foreign_currency_code']));
// use foreign amount?
- $foreignCurrencyId = (int) $journal['foreign_currency_id'];
- if(0 !== $foreignCurrencyId) {
+ $foreignCurrencyId = (int) $journal['foreign_currency_id'];
+ if (0 !== $foreignCurrencyId) {
$foreignCurrencyName = $journal['foreign_currency_name'];
$foreignCurrencySymbol = $journal['foreign_currency_symbol'];
$foreignCurrencyCode = $journal['foreign_currency_code'];
@@ -120,8 +120,8 @@ class TransactionSummarizer
}
// then process foreign amount, if it exists.
- if(0 !== $foreignCurrencyId) {
- $amount = (string) ($journal['foreign_amount'] ?? '0');
+ if (0 !== $foreignCurrencyId) {
+ $amount = (string) ($journal['foreign_amount'] ?? '0');
$array[$foreignCurrencyId] ??= [
'sum' => '0',
'currency_id' => $foreignCurrencyId,
@@ -138,7 +138,7 @@ class TransactionSummarizer
$array[$foreignCurrencyId]['sum'] = bcadd($array[$foreignCurrencyId]['sum'], app('steam')->negative($amount));
}
}
-
+
// $array[$currencyId]['sum'] = bcadd($array[$currencyId]['sum'], app('steam')->{$method}($amount));
// Log::debug(sprintf('Journal #%d adds amount %s %s', $journal['transaction_journal_id'], $currencyCode, $amount));
}
diff --git a/app/Support/Steam.php b/app/Support/Steam.php
index ba1d360276..c2ed20374b 100644
--- a/app/Support/Steam.php
+++ b/app/Support/Steam.php
@@ -81,7 +81,7 @@ class Steam
* Since we just did "startOfDay" we can do subDay()->endOfDay() to get the correct moment.
* THAT will be the start balance.
*/
- $request = clone $start;
+ $request = clone $start;
$request->subDay()->endOfDay();
Log::debug(sprintf('finalAccountBalanceInRange: Call finalAccountBalance with date/time "%s"', $request->toIso8601String()));
$startBalance = $this->finalAccountBalance($account, $request);
@@ -162,7 +162,7 @@ class Steam
if ($convertToNative) {
$nativeSumOfDay = $converter->convert($entryCurrency, $nativeCurrency, $carbon, $sumOfDay);
$currentBalance['native_balance'] = bcadd($currentBalance['native_balance'], $nativeSumOfDay);
- if($currency->id === $entryCurrency->id) {
+ if ($currency->id === $entryCurrency->id) {
$currentBalance['balance'] = bcadd($currentBalance['balance'], $sumOfDay);
}
diff --git a/composer.lock b/composer.lock
index bbe03ef7cc..b57193c74c 100644
--- a/composer.lock
+++ b/composer.lock
@@ -1874,16 +1874,16 @@
},
{
"name": "laravel/framework",
- "version": "v11.41.3",
+ "version": "v11.42.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
- "reference": "3ef433d5865f30a19b6b1be247586068399b59cc"
+ "reference": "006375ba67e830e87daa7b52ab65163ba3508d26"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laravel/framework/zipball/3ef433d5865f30a19b6b1be247586068399b59cc",
- "reference": "3ef433d5865f30a19b6b1be247586068399b59cc",
+ "url": "https://api.github.com/repos/laravel/framework/zipball/006375ba67e830e87daa7b52ab65163ba3508d26",
+ "reference": "006375ba67e830e87daa7b52ab65163ba3508d26",
"shasum": ""
},
"require": {
@@ -1991,11 +1991,11 @@
"league/flysystem-read-only": "^3.25.1",
"league/flysystem-sftp-v3": "^3.25.1",
"mockery/mockery": "^1.6.10",
- "orchestra/testbench-core": "^9.6",
+ "orchestra/testbench-core": "^9.9.4",
"pda/pheanstalk": "^5.0.6",
"php-http/discovery": "^1.15",
- "phpstan/phpstan": "^1.11.5",
- "phpunit/phpunit": "^10.5.35|^11.3.6",
+ "phpstan/phpstan": "^2.0",
+ "phpunit/phpunit": "^10.5.35|^11.3.6|^12.0.1",
"predis/predis": "^2.3",
"resend/resend-php": "^0.10.0",
"symfony/cache": "^7.0.3",
@@ -2027,7 +2027,7 @@
"mockery/mockery": "Required to use mocking (^1.6).",
"pda/pheanstalk": "Required to use the beanstalk queue driver (^5.0).",
"php-http/discovery": "Required to use PSR-7 bridging features (^1.15).",
- "phpunit/phpunit": "Required to use assertions and run tests (^10.5|^11.0).",
+ "phpunit/phpunit": "Required to use assertions and run tests (^10.5.35|^11.3.6|^12.0.1).",
"predis/predis": "Required to use the predis connector (^2.3).",
"psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).",
"pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).",
@@ -2085,7 +2085,7 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
- "time": "2025-01-30T13:25:22+00:00"
+ "time": "2025-02-11T17:17:56+00:00"
},
{
"name": "laravel/passport",
@@ -2165,16 +2165,16 @@
},
{
"name": "laravel/prompts",
- "version": "v0.3.4",
+ "version": "v0.3.5",
"source": {
"type": "git",
"url": "https://github.com/laravel/prompts.git",
- "reference": "abeaa2ba4294247d5409490d1ca1bc6248087011"
+ "reference": "57b8f7efe40333cdb925700891c7d7465325d3b1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laravel/prompts/zipball/abeaa2ba4294247d5409490d1ca1bc6248087011",
- "reference": "abeaa2ba4294247d5409490d1ca1bc6248087011",
+ "url": "https://api.github.com/repos/laravel/prompts/zipball/57b8f7efe40333cdb925700891c7d7465325d3b1",
+ "reference": "57b8f7efe40333cdb925700891c7d7465325d3b1",
"shasum": ""
},
"require": {
@@ -2218,9 +2218,9 @@
"description": "Add beautiful and user-friendly forms to your command-line applications.",
"support": {
"issues": "https://github.com/laravel/prompts/issues",
- "source": "https://github.com/laravel/prompts/tree/v0.3.4"
+ "source": "https://github.com/laravel/prompts/tree/v0.3.5"
},
- "time": "2025-01-24T15:41:01+00:00"
+ "time": "2025-02-11T13:34:40+00:00"
},
{
"name": "laravel/sanctum",
@@ -2288,16 +2288,16 @@
},
{
"name": "laravel/serializable-closure",
- "version": "v2.0.2",
+ "version": "v2.0.3",
"source": {
"type": "git",
"url": "https://github.com/laravel/serializable-closure.git",
- "reference": "2e1a362527783bcab6c316aad51bf36c5513ae44"
+ "reference": "f379c13663245f7aa4512a7869f62eb14095f23f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/2e1a362527783bcab6c316aad51bf36c5513ae44",
- "reference": "2e1a362527783bcab6c316aad51bf36c5513ae44",
+ "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/f379c13663245f7aa4512a7869f62eb14095f23f",
+ "reference": "f379c13663245f7aa4512a7869f62eb14095f23f",
"shasum": ""
},
"require": {
@@ -2345,7 +2345,7 @@
"issues": "https://github.com/laravel/serializable-closure/issues",
"source": "https://github.com/laravel/serializable-closure"
},
- "time": "2025-01-24T15:42:37+00:00"
+ "time": "2025-02-11T15:03:05+00:00"
},
{
"name": "laravel/slack-notification-channel",
@@ -3703,16 +3703,16 @@
},
{
"name": "nesbot/carbon",
- "version": "3.8.4",
+ "version": "3.8.5",
"source": {
"type": "git",
"url": "https://github.com/CarbonPHP/carbon.git",
- "reference": "129700ed449b1f02d70272d2ac802357c8c30c58"
+ "reference": "b1a53a27898639579a67de42e8ced5d5386aa9a4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/129700ed449b1f02d70272d2ac802357c8c30c58",
- "reference": "129700ed449b1f02d70272d2ac802357c8c30c58",
+ "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/b1a53a27898639579a67de42e8ced5d5386aa9a4",
+ "reference": "b1a53a27898639579a67de42e8ced5d5386aa9a4",
"shasum": ""
},
"require": {
@@ -3788,8 +3788,8 @@
],
"support": {
"docs": "https://carbon.nesbot.com/docs",
- "issues": "https://github.com/briannesbitt/Carbon/issues",
- "source": "https://github.com/briannesbitt/Carbon"
+ "issues": "https://github.com/CarbonPHP/carbon/issues",
+ "source": "https://github.com/CarbonPHP/carbon"
},
"funding": [
{
@@ -3805,7 +3805,7 @@
"type": "tidelift"
}
],
- "time": "2024-12-27T09:25:35+00:00"
+ "time": "2025-02-11T16:28:45+00:00"
},
{
"name": "nette/schema",
diff --git a/config/firefly.php b/config/firefly.php
index 87dc04ae8d..72e3181102 100644
--- a/config/firefly.php
+++ b/config/firefly.php
@@ -81,7 +81,7 @@ return [
'running_balance_column' => env('USE_RUNNING_BALANCE', false),
// see cer.php for exchange rates feature flag.
],
- 'version' => 'develop/2025-02-11',
+ 'version' => 'develop/2025-02-12',
'api_version' => '2.1.0', // field is no longer used.
'db_version' => 25,
diff --git a/package-lock.json b/package-lock.json
index f2e4fc9e6f..022b1d6a65 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4180,9 +4180,9 @@
"license": "MIT"
},
"node_modules/bootstrap5-autocomplete": {
- "version": "1.1.35",
- "resolved": "https://registry.npmjs.org/bootstrap5-autocomplete/-/bootstrap5-autocomplete-1.1.35.tgz",
- "integrity": "sha512-vZAOef3lGrpGGnnIKTJlqiqv6wsx0Wr31/mc010mJmHF1eXJd28jzfGn7ol8eOI/7FiDcm3wd/1VTWku40vLbQ==",
+ "version": "1.1.36",
+ "resolved": "https://registry.npmjs.org/bootstrap5-autocomplete/-/bootstrap5-autocomplete-1.1.36.tgz",
+ "integrity": "sha512-fZpklymmrwAls3n6YDMua2msnBB4pwmJgJgqMayHLfnvvc2dhKWwp/qu0pGJI99S8TwC+ZDjYtEsfl+4/FEZhg==",
"license": "MIT"
},
"node_modules/bootstrap5-tags": {
@@ -10893,9 +10893,9 @@
}
},
"node_modules/terser": {
- "version": "5.38.1",
- "resolved": "https://registry.npmjs.org/terser/-/terser-5.38.1.tgz",
- "integrity": "sha512-GWANVlPM/ZfYzuPHjq0nxT+EbOEDDN3Jwhwdg1D8TU8oSkktp8w64Uq4auuGLxFSoNTRDncTq2hQHX1Ld9KHkA==",
+ "version": "5.38.2",
+ "resolved": "https://registry.npmjs.org/terser/-/terser-5.38.2.tgz",
+ "integrity": "sha512-w8CXxxbFA5zfNsR/i8HZq5bvn18AK0O9jj7hyo1YqkovLxEFa0uP0LCVGZRqiRaKRFxXhELBp8SteeAjEnfeJg==",
"dev": true,
"license": "BSD-2-Clause",
"dependencies": {