mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Cleanup and fix tests.
This commit is contained in:
@@ -16,11 +16,19 @@ class Account
|
||||
/** @var Collection */
|
||||
protected $accounts;
|
||||
/** @var string */
|
||||
protected $difference;
|
||||
protected $difference = '';
|
||||
/** @var string */
|
||||
protected $end;
|
||||
protected $end = '';
|
||||
/** @var string */
|
||||
protected $start;
|
||||
protected $start = '';
|
||||
|
||||
/**
|
||||
* Account constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->accounts = new Collection;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Collection
|
||||
|
@@ -41,7 +41,7 @@ class Balance
|
||||
*/
|
||||
public function getBalanceHeader(): BalanceHeader
|
||||
{
|
||||
return $this->balanceHeader;
|
||||
return $this->balanceHeader ?? new BalanceHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user