Skip to content

Firefly III: a personal finances manager

🤖 Auto commit for release 'develop' on 2026-03-06

JC536d20137b2e2
diff --git a/app/Http/Controllers/PiggyBank/IndexController.php b/app/Http/Controllers/PiggyBank/IndexController.php
index ddb57f29b3..3b183ddb3e 100644
--- a/app/Http/Controllers/PiggyBank/IndexController.php
+++ b/app/Http/Controllers/PiggyBank/IndexController.php
@@ -112,7 +112,7 @@ final class IndexController extends Controller
private function collectAccounts(Collection $collection): array
{
- $now = Carbon::now();
+ $now = Carbon::now();
/** @var AccountTransformer $accountTransformer */
$accountTransformer = app(AccountTransformer::class);
diff --git a/app/Repositories/Budget/BudgetLimitRepository.php b/app/Repositories/Budget/BudgetLimitRepository.php
index f675100916..d3aedae0fc 100644
--- a/app/Repositories/Budget/BudgetLimitRepository.php
+++ b/app/Repositories/Budget/BudgetLimitRepository.php
@@ -402,7 +402,7 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface, UserGroup
}
Log::debug(sprintf('Updated budget limit with ID #%d', $budgetLimit->id));
$generateMessages = $data['fire_webhooks'] ?? true;
- event( new UpdatedBudgetLimit($budgetLimit, $generateMessages));
+ event(new UpdatedBudgetLimit($budgetLimit, $generateMessages));
event(new WebhookMessagesRequestSending());
return $budgetLimit;
diff --git a/app/Rules/Webhook/IsValidWebhookUrl.php b/app/Rules/Webhook/IsValidWebhookUrl.php
index c35ad2f184..1efca2b304 100644
--- a/app/Rules/Webhook/IsValidWebhookUrl.php
+++ b/app/Rules/Webhook/IsValidWebhookUrl.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace FireflyIII\Rules\Webhook;
use Closure;
@@ -7,6 +9,7 @@ use FireflyIII\Support\Facades\FireflyConfig;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Support\Facades\Log;
use Symfony\Component\HttpFoundation\IpUtils;
+
use function Safe\parse_url;
class IsValidWebhookUrl implements ValidationRule
@@ -16,13 +19,14 @@ class IsValidWebhookUrl implements ValidationRule
*/
public function validate(string $attribute, mixed $value, Closure $fail): void
{
- $value = (string)$value;
- $resolved = gethostbyname(parse_url($value, PHP_URL_HOST));
+ $value = (string) $value;
+ $resolved = gethostbyname(parse_url($value, PHP_URL_HOST));
Log::debug(sprintf('Now validating URL "%s" with IP "%s".', $value, $resolved));
// IPv4 is allowed to be in 127 range.
- if(filter_var($resolved, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) && IpUtils::checkIp4($resolved, '127.0.0.0/8')) {
+ if (filter_var($resolved, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) && IpUtils::checkIp4($resolved, '127.0.0.0/8')) {
Log::debug(sprintf('Local IP "%s" is allowed', $resolved));
+
return;
}
@@ -31,16 +35,15 @@ class IsValidWebhookUrl implements ValidationRule
$fail('validation.no_reserved_ip')->translate();
}
$validProtocols = FireflyConfig::get('valid_url_protocols', config('firefly.valid_url_protocols'))->data;
- $parts = explode(',', $validProtocols);
- $valid = false;
- foreach($parts as $part) {
- if(str_starts_with($value, $part)) {
+ $parts = explode(',', $validProtocols);
+ $valid = false;
+ foreach ($parts as $part) {
+ if (str_starts_with($value, $part)) {
$valid = true;
}
}
- if(false === $valid) {
+ if (false === $valid) {
$fail('validation.bad_url_prefix')->translate();
}
}
}
-
diff --git a/app/Services/Webhook/StandardWebhookSender.php b/app/Services/Webhook/StandardWebhookSender.php
index f50561a008..8724011cd1 100644
--- a/app/Services/Webhook/StandardWebhookSender.php
+++ b/app/Services/Webhook/StandardWebhookSender.php
@@ -66,13 +66,13 @@ class StandardWebhookSender implements WebhookSenderInterface
$this->message->save();
// validate the webhook URL.
- $data = [
- 'url' => $this->message->webhook->url
+ $data = [
+ 'url' => $this->message->webhook->url,
];
- $rules = [
- 'url' => [new IsValidWebhookUrl()]
+ $rules = [
+ 'url' => [new IsValidWebhookUrl()],
];
- $res=Validator::make($data, $rules)->validate();
+ $res = Validator::make($data, $rules)->validate();
Log::debug('Result of res', $res);
try {
@@ -125,7 +125,6 @@ class StandardWebhookSender implements WebhookSenderInterface
];
$client = new Client();
-
try {
$res = $client->request('POST', $this->message->webhook->url, $options);
} catch (ConnectException|RequestException $e) {
diff --git a/app/Support/Models/AvailableBudgetCalculator.php b/app/Support/Models/AvailableBudgetCalculator.php
index c2d2b594ac..246b5f38f5 100644
--- a/app/Support/Models/AvailableBudgetCalculator.php
+++ b/app/Support/Models/AvailableBudgetCalculator.php
@@ -48,7 +48,8 @@ class AvailableBudgetCalculator
private AvailableBudgetRepositoryInterface $abRepository;
private BudgetLimitRepositoryInterface $blRepository;
- public function __construct() {
+ public function __construct()
+ {
Log::debug('Created new AvailableBudgetCalculator');
}
diff --git a/changelog.md b/changelog.md
index 572310a00f..07c1dfdbf9 100644
--- a/changelog.md
+++ b/changelog.md
@@ -11,7 +11,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
-- #11873
+- [Issue 11873](https://github.com/firefly-iii/firefly-iii/issues/11873) (Piggy bank +/- sometimes sends 0.00 and fails with “Cannot add 0 because canAddAmount returned false”) reported by @ralle06
- Transaction count would search for the wrong meta field.
### Security
diff --git a/composer.lock b/composer.lock
index 5037bdce23..b3bdda56cc 100644
--- a/composer.lock
+++ b/composer.lock
@@ -2561,16 +2561,16 @@
},
{
"name": "league/commonmark",
- "version": "2.8.0",
+ "version": "2.8.1",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/commonmark.git",
- "reference": "4efa10c1e56488e658d10adf7b7b7dcd19940bfb"
+ "reference": "84b1ca48347efdbe775426f108622a42735a6579"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/4efa10c1e56488e658d10adf7b7b7dcd19940bfb",
- "reference": "4efa10c1e56488e658d10adf7b7b7dcd19940bfb",
+ "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/84b1ca48347efdbe775426f108622a42735a6579",
+ "reference": "84b1ca48347efdbe775426f108622a42735a6579",
"shasum": ""
},
"require": {
@@ -2595,9 +2595,9 @@
"phpstan/phpstan": "^1.8.2",
"phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0",
"scrutinizer/ocular": "^1.8.1",
- "symfony/finder": "^5.3 | ^6.0 | ^7.0",
- "symfony/process": "^5.4 | ^6.0 | ^7.0",
- "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 | ^7.0",
+ "symfony/finder": "^5.3 | ^6.0 | ^7.0 || ^8.0",
+ "symfony/process": "^5.4 | ^6.0 | ^7.0 || ^8.0",
+ "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 | ^7.0 || ^8.0",
"unleashedtech/php-coding-standard": "^3.1.1",
"vimeo/psalm": "^4.24.0 || ^5.0.0 || ^6.0.0"
},
@@ -2664,7 +2664,7 @@
"type": "tidelift"
}
],
- "time": "2025-11-26T21:48:24+00:00"
+ "time": "2026-03-05T21:37:03+00:00"
},
{
"name": "league/config",
@@ -10115,16 +10115,16 @@
},
{
"name": "barryvdh/reflection-docblock",
- "version": "v2.4.0",
+ "version": "v2.4.1",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/ReflectionDocBlock.git",
- "reference": "d103774cbe7e94ddee7e4870f97f727b43fe7201"
+ "reference": "4f5ba70c30c81f2ce03a16a9965832cfcc31ed3b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/d103774cbe7e94ddee7e4870f97f727b43fe7201",
- "reference": "d103774cbe7e94ddee7e4870f97f727b43fe7201",
+ "url": "https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/4f5ba70c30c81f2ce03a16a9965832cfcc31ed3b",
+ "reference": "4f5ba70c30c81f2ce03a16a9965832cfcc31ed3b",
"shasum": ""
},
"require": {
@@ -10161,9 +10161,9 @@
}
],
"support": {
- "source": "https://github.com/barryvdh/ReflectionDocBlock/tree/v2.4.0"
+ "source": "https://github.com/barryvdh/ReflectionDocBlock/tree/v2.4.1"
},
- "time": "2025-07-17T06:07:30+00:00"
+ "time": "2026-03-05T20:09:01+00:00"
},
{
"name": "cloudcreativity/json-api-testing",
@@ -10373,16 +10373,16 @@
},
{
"name": "driftingly/rector-laravel",
- "version": "2.1.9",
+ "version": "2.1.11",
"source": {
"type": "git",
"url": "https://github.com/driftingly/rector-laravel.git",
- "reference": "aee9d4a1d489e7ec484fc79f33137f8ee051b3f7"
+ "reference": "84ea7e03f4a2d9d33e303559ed7e3280bfdb8d01"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/driftingly/rector-laravel/zipball/aee9d4a1d489e7ec484fc79f33137f8ee051b3f7",
- "reference": "aee9d4a1d489e7ec484fc79f33137f8ee051b3f7",
+ "url": "https://api.github.com/repos/driftingly/rector-laravel/zipball/84ea7e03f4a2d9d33e303559ed7e3280bfdb8d01",
+ "reference": "84ea7e03f4a2d9d33e303559ed7e3280bfdb8d01",
"shasum": ""
},
"require": {
@@ -10403,9 +10403,9 @@
"description": "Rector upgrades rules for Laravel Framework",
"support": {
"issues": "https://github.com/driftingly/rector-laravel/issues",
- "source": "https://github.com/driftingly/rector-laravel/tree/2.1.9"
+ "source": "https://github.com/driftingly/rector-laravel/tree/2.1.11"
},
- "time": "2025-12-25T23:31:36+00:00"
+ "time": "2026-03-05T19:46:28+00:00"
},
{
"name": "fakerphp/faker",
@@ -11140,16 +11140,16 @@
},
{
"name": "php-debugbar/php-debugbar",
- "version": "v3.4.1",
+ "version": "v3.5.1",
"source": {
"type": "git",
"url": "https://github.com/php-debugbar/php-debugbar.git",
- "reference": "ee9c718797a4c1fdf6c4d980cb3edcc1eeeddcc7"
+ "reference": "486b32fd98efe9a3c10f0b24c0caabc187f78f04"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-debugbar/php-debugbar/zipball/ee9c718797a4c1fdf6c4d980cb3edcc1eeeddcc7",
- "reference": "ee9c718797a4c1fdf6c4d980cb3edcc1eeeddcc7",
+ "url": "https://api.github.com/repos/php-debugbar/php-debugbar/zipball/486b32fd98efe9a3c10f0b24c0caabc187f78f04",
+ "reference": "486b32fd98efe9a3c10f0b24c0caabc187f78f04",
"shasum": ""
},
"require": {
@@ -11226,7 +11226,7 @@
],
"support": {
"issues": "https://github.com/php-debugbar/php-debugbar/issues",
- "source": "https://github.com/php-debugbar/php-debugbar/tree/v3.4.1"
+ "source": "https://github.com/php-debugbar/php-debugbar/tree/v3.5.1"
},
"funding": [
{
@@ -11238,7 +11238,7 @@
"type": "github"
}
],
- "time": "2026-02-26T11:40:30+00:00"
+ "time": "2026-03-05T20:37:33+00:00"
},
{
"name": "php-debugbar/symfony-bridge",
diff --git a/config/firefly.php b/config/firefly.php
index 17d3ad37c1..f3251a1519 100644
--- a/config/firefly.php
+++ b/config/firefly.php
@@ -78,8 +78,8 @@ return [
'running_balance_column' => (bool)envNonEmpty('USE_RUNNING_BALANCE', true), // this is only the default value, is not used.
// see cer.php for exchange rates feature flag.
],
- 'version' => 'develop/2026-03-04',
- 'build_time' => 1772642078,
+ 'version' => 'develop/2026-03-06',
+ 'build_time' => 1772775247,
'api_version' => '2.1.0', // field is no longer used.
'db_version' => 28, // field is no longer used.
diff --git a/package-lock.json b/package-lock.json
index ef66764d8c..53696c8d09 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3236,9 +3236,9 @@
"license": "MIT"
},
"node_modules/@types/node": {
- "version": "25.3.3",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-25.3.3.tgz",
- "integrity": "sha512-DpzbrH7wIcBaJibpKo9nnSQL0MTRdnWttGyE5haGwK86xgMOkFLp7vEyfQPGLOJh5wNYiJ3V9PmUMDhV9u8kkQ==",
+ "version": "25.3.5",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-25.3.5.tgz",
+ "integrity": "sha512-oX8xrhvpiyRCQkG1MFchB09f+cXftgIXb3a7UUa4Y3wpmZPw5tyZGTLWhlESOLq1Rq6oDlc8npVU2/9xiCuXMA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3263,9 +3263,9 @@
"license": "MIT"
},
"node_modules/@types/qs": {
- "version": "6.14.0",
- "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz",
- "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==",
+ "version": "6.15.0",
+ "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.15.0.tgz",
+ "integrity": "sha512-JawvT8iBVWpzTrz3EGw9BTQFg3BQNmwERdKE22vlTxawwtbyUSlMppvZYKLZzB5zgACXdXxbD3m1bXaMqP/9ow==",
"dev": true,
"license": "MIT"
},