mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
N°8851 - Explicit nullable in functions parameters
This commit is contained in:
@@ -89,7 +89,7 @@ abstract class Field
|
||||
* @param string $sId
|
||||
* @param \Closure|null $onFinalizeCallback (Used in the $oForm->AddField($sId, ..., function() use ($oManager, $oForm, '...') { ... } ); )
|
||||
*/
|
||||
public function __construct(string $sId, Closure $onFinalizeCallback = null)
|
||||
public function __construct(string $sId, ?Closure $onFinalizeCallback = null)
|
||||
{
|
||||
$this->sId = $sId;
|
||||
// No space in such an id, that could be used as a DOM node id
|
||||
|
||||
Reference in New Issue
Block a user