See if this is the solution in Scrutinizer as well.

This commit is contained in:
James Cole
2018-07-14 23:32:03 +02:00
parent f1462dbd3d
commit 8fde16422e
2 changed files with 57 additions and 17 deletions

View File

@@ -79,6 +79,7 @@ class BudgetController extends Controller
public function budget(Budget $budget): JsonResponse
{
$start = $this->repository->firstUseDate($budget);
/** @var Carbon $end */
$end = session('end', new Carbon);
$cache = new CacheProperties();
$cache->addProperty($start);