Fix department return type

This commit is contained in:
Dennis Eichhorn 2017-09-18 07:42:03 +02:00
parent 97a1a7d855
commit 3b4d77d222

View File

@ -12,8 +12,11 @@
* @link http://orange-management.com
*/
declare(strict_types=1);
namespace Modules\RiskManagement\Models;
use Modules\Organization\Models\NullDepartment;
/**
* Risk Management class.
*
@ -44,7 +47,7 @@ class Department
public function getDepartment()
{
return $this->department;
return $this->department ?? new NullDepartment();
}
public function setDepartment($department)