mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
All rules for #2723, untested.
This commit is contained in:
@@ -155,14 +155,14 @@ class Account extends Model
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountNumberAttribute(): ?string
|
||||
public function getAccountNumberAttribute(): string
|
||||
{
|
||||
/** @var AccountMeta $metaValue */
|
||||
$metaValue = $this->accountMeta()
|
||||
->where('name', 'account_number')
|
||||
->first();
|
||||
|
||||
return $metaValue ? $metaValue->data : null;
|
||||
return $metaValue ? $metaValue->data : '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user