This PHP7 thing is strict!

This commit is contained in:
James Cole 2016-02-05 19:56:25 +01:00
parent a4e699f781
commit c3f78b698d
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class BudgetLine
*/
public function getBudget(): BudgetModel
{
return $this->budget;
return $this->budget ?? new BudgetModel;
}
/**

View File

@ -19,7 +19,7 @@
{% for budgetLine in budgets.getBudgetLines %}
<tr>
<td>
{% if budgetLine.getBudget %}
{% if budgetLine.getBudget.id %}
<a href="{{ route('budgets.show',budgetLine.getBudget.id) }}">{{ budgetLine.getBudget.name }}</a>
{% else %}
<em>{{ 'noBudget'|_ }}</em>