Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Possible fix for https://github.com/firefly-iii/firefly-iii/issues/8163
James Colebac0710a9c5a
diff --git a/.ci/php-cs-fixer/composer.lock b/.ci/php-cs-fixer/composer.lockindex a3acb2a82b..7bf45bfc60 100644--- a/.ci/php-cs-fixer/composer.lock+++ b/.ci/php-cs-fixer/composer.lock@@ -226,16 +226,16 @@},{"name": "friendsofphp/php-cs-fixer",- "version": "v3.38.2",+ "version": "v3.39.0","source": {"type": "git","url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git",- "reference": "d872cdd543797ade030aaa307c0a4954a712e081"+ "reference": "04bf7b28fc847185b247d112cab617da941e3cca"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/d872cdd543797ade030aaa307c0a4954a712e081",- "reference": "d872cdd543797ade030aaa307c0a4954a712e081",+ "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/04bf7b28fc847185b247d112cab617da941e3cca",+ "reference": "04bf7b28fc847185b247d112cab617da941e3cca","shasum": ""},"require": {@@ -245,16 +245,16 @@"ext-tokenizer": "*","php": "^7.4 || ^8.0","sebastian/diff": "^4.0 || ^5.0",- "symfony/console": "^5.4 || ^6.0",- "symfony/event-dispatcher": "^5.4 || ^6.0",- "symfony/filesystem": "^5.4 || ^6.0",- "symfony/finder": "^5.4 || ^6.0",- "symfony/options-resolver": "^5.4 || ^6.0",+ "symfony/console": "^5.4 || ^6.0 || ^7.0",+ "symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0",+ "symfony/filesystem": "^5.4 || ^6.0 || ^7.0",+ "symfony/finder": "^5.4 || ^6.0 || ^7.0",+ "symfony/options-resolver": "^5.4 || ^6.0 || ^7.0","symfony/polyfill-mbstring": "^1.27","symfony/polyfill-php80": "^1.27","symfony/polyfill-php81": "^1.27",- "symfony/process": "^5.4 || ^6.0",- "symfony/stopwatch": "^5.4 || ^6.0"+ "symfony/process": "^5.4 || ^6.0 || ^7.0",+ "symfony/stopwatch": "^5.4 || ^6.0 || ^7.0"},"require-dev": {"facile-it/paraunit": "^1.3 || ^2.0",@@ -268,8 +268,8 @@"phpspec/prophecy": "^1.16","phpspec/prophecy-phpunit": "^2.0","phpunit/phpunit": "^9.5",- "symfony/phpunit-bridge": "^6.2.3",- "symfony/yaml": "^5.4 || ^6.0"+ "symfony/phpunit-bridge": "^6.2.3 || ^7.0",+ "symfony/yaml": "^5.4 || ^6.0 || ^7.0"},"suggest": {"ext-dom": "For handling output formats in XML",@@ -307,7 +307,7 @@],"support": {"issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues",- "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.38.2"+ "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.39.0"},"funding": [{@@ -315,7 +315,7 @@"type": "github"}],- "time": "2023-11-14T00:19:22+00:00"+ "time": "2023-11-22T11:20:09+00:00"},{"name": "psr/container",diff --git a/app/Http/Controllers/Bill/ShowController.php b/app/Http/Controllers/Bill/ShowController.phpindex 70f53aadf2..c59850189c 100644--- a/app/Http/Controllers/Bill/ShowController.php+++ b/app/Http/Controllers/Bill/ShowController.php@@ -90,7 +90,7 @@ class ShowController extends Controllerreturn redirect(route('bills.show', [$bill->id]));}- $set = $this->repository->getRulesForBill($bill);+ $set = $this->repository->getRulesForBill($bill);if (0 === $set->count()) {$request->session()->flash('error', (string)trans('firefly.no_rules_for_bill'));@@ -142,6 +142,10 @@ class ShowController extends Controller$manager->setSerializer(new DataArraySerializer());$manager->parseIncludes(['attachments', 'notes']);+ // add another period to end, could fix 8163+ $range = app('navigation')->getViewRange(true);+ $end = app('navigation')->addPeriod($end, $range);+// Make a resource out of the data and$parameters = new ParameterBag();$parameters->set('start', $start);