mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°8851 - Explicit nullable in functions parameters
This commit is contained in:
@@ -49,7 +49,7 @@ class LinkSetDataTransformer
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function Decode(iDBObjectSetIterator $oDbObjectSet, string $sTargetClass, string $sTargetField = null): array
|
||||
public static function Decode(iDBObjectSetIterator $oDbObjectSet, string $sTargetClass, ?string $sTargetField = null): array
|
||||
{
|
||||
try {
|
||||
// Prepare result
|
||||
@@ -96,7 +96,7 @@ class LinkSetDataTransformer
|
||||
*
|
||||
* @return array{to_be_created: array, to_be_deleted: array, to_be_added: array, to_be_removed: array}
|
||||
*/
|
||||
public static function Encode(array $aElements, string $sLinkClass, string $sExtKeyToRemote = null): array
|
||||
public static function Encode(array $aElements, string $sLinkClass, ?string $sExtKeyToRemote = null): array
|
||||
{
|
||||
// Result arrays
|
||||
$aToBeCreate = [];
|
||||
|
||||
Reference in New Issue
Block a user