mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Various improvs to the report generator.
This commit is contained in:
@@ -648,10 +648,9 @@ class CategoryController extends Controller
|
||||
* @param Carbon $start
|
||||
* @param Carbon $end
|
||||
*
|
||||
* @return mixed|string
|
||||
* @throws JsonException
|
||||
* @return string
|
||||
*/
|
||||
public function operations(Collection $accounts, Carbon $start, Carbon $end)
|
||||
public function operations(Collection $accounts, Carbon $start, Carbon $end): string
|
||||
{
|
||||
// chart properties for cache:
|
||||
$cache = new CacheProperties;
|
||||
@@ -673,7 +672,7 @@ class CategoryController extends Controller
|
||||
|
||||
|
||||
try {
|
||||
$result = prefixView('reports.partials.categories', compact('report'))->render();
|
||||
$result = (string)prefixView('reports.partials.categories', compact('report'))->render();
|
||||
$cache->store($result);
|
||||
} catch (Throwable $e) { // @phpstan-ignore-line
|
||||
Log::error(sprintf('Could not render category::expenses: %s', $e->getMessage()));
|
||||
|
||||
Reference in New Issue
Block a user