mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 08:38:45 +02:00
N°8851 - Explicit nullable in functions parameters (#857)
This commit is contained in:
@@ -20,12 +20,12 @@ class FormBlockService
|
||||
{
|
||||
private static FormBlockService $oInstance;
|
||||
|
||||
protected function __construct(ModelReflection $oModelReflection = null)
|
||||
protected function __construct(?ModelReflection $oModelReflection = null)
|
||||
{
|
||||
ServiceLocator::GetInstance()->RegisterService('ModelReflection', $oModelReflection ?? new ModelReflectionRuntime());
|
||||
}
|
||||
|
||||
final public static function GetInstance(ModelReflection $oModelReflection = null): FormBlockService
|
||||
final public static function GetInstance(?ModelReflection $oModelReflection = null): FormBlockService
|
||||
{
|
||||
if (!isset(static::$oInstance)) {
|
||||
static::$oInstance = new FormBlockService($oModelReflection);
|
||||
|
||||
Reference in New Issue
Block a user