mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°8851 - Explicit nullable in functions parameters
This commit is contained in:
@@ -36,7 +36,7 @@ class AjaxDataProviderForOQL extends AjaxDataProvider
|
||||
* @param string|null $sWizardHelperJsVarName Wizard helper name
|
||||
* @param array $aFieldsToLoad Array of fields to load
|
||||
*/
|
||||
public function __construct(string $sObjectClass, string $sOql, string $sWizardHelperJsVarName = null, array $aFieldsToLoad = [])
|
||||
public function __construct(string $sObjectClass, string $sOql, ?string $sWizardHelperJsVarName = null, array $aFieldsToLoad = [])
|
||||
{
|
||||
parent::__construct('object.search', [
|
||||
'object_class' => $sObjectClass,
|
||||
|
||||
@@ -107,7 +107,7 @@ class Set extends AbstractInput
|
||||
*
|
||||
* @param string|null $sId Block identifier
|
||||
*/
|
||||
public function __construct(string $sId = null)
|
||||
public function __construct(?string $sId = null)
|
||||
{
|
||||
parent::__construct($sId);
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ class SetUIBlockFactory extends AbstractUIBlockFactory
|
||||
*
|
||||
* @return \Combodo\iTop\Application\UI\Base\Component\Input\Set\Set
|
||||
*/
|
||||
public static function MakeForOQL(string $sId, string $sObjectClass, string $sOql, string $sWizardHelperJsVarName = null, array $aFieldsToLoad = [], ?string $sGroupField = null, string $sName = ''): Set
|
||||
public static function MakeForOQL(string $sId, string $sObjectClass, string $sOql, ?string $sWizardHelperJsVarName = null, array $aFieldsToLoad = [], ?string $sGroupField = null, string $sName = ''): Set
|
||||
{
|
||||
// Create set ui block
|
||||
$oSetUIBlock = new Set($sId);
|
||||
|
||||
Reference in New Issue
Block a user