Fix some errors found in debug logs.

This commit is contained in:
James Cole
2018-07-27 03:09:35 +02:00
parent d6298d9f05
commit 2ad8e7f343
5 changed files with 10 additions and 10 deletions

View File

@@ -176,15 +176,15 @@ class AutoCompleteController extends Controller
* @param JournalCollectorInterface $collector
* @param TransactionJournal $except
*
* @return JsonResponse|mixed
* @return JsonResponse
*/
public function journalsWithId(JournalCollectorInterface $collector, TransactionJournal $except)
public function journalsWithId(JournalCollectorInterface $collector, TransactionJournal $except): JsonResponse
{
$cache = new CacheProperties;
$cache->addProperty('recent-journals-id');
if ($cache->has()) {
return $cache->get(); // @codeCoverageIgnore
return response()->json($cache->get()); // @codeCoverageIgnore
}
$collector->setLimit(400)->setPage(1);