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;
}
/**