mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Make method nullable.
This commit is contained in:
@@ -410,11 +410,11 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
*
|
||||
* @param Account $account
|
||||
*
|
||||
* @return Carbon
|
||||
* @return Carbon|null
|
||||
*/
|
||||
public function oldestJournalDate(Account $account): Carbon
|
||||
public function oldestJournalDate(Account $account): ?Carbon
|
||||
{
|
||||
$result = new Carbon;
|
||||
$result = null;
|
||||
$journal = $this->oldestJournal($account);
|
||||
if (null !== $journal) {
|
||||
$result = $journal->date;
|
||||
|
Reference in New Issue
Block a user