mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-01-16 21:58:41 +00:00
Fix department return type
This commit is contained in:
parent
97a1a7d855
commit
3b4d77d222
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user