fix non php7.4 type

This commit is contained in:
Jean-Christian Paul Denis 2023-06-16 21:33:22 +02:00
parent b48cf32118
commit 5ebee0b174
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -71,7 +71,7 @@ class Backend extends dcNsProcess
$bk->alias = new Alias(); $bk->alias = new Alias();
$bk->aliases = $bk->alias->getAliases(); $bk->aliases = $bk->alias->getAliases();
}, },
'importFullV2' => function (bool|FlatBackupItem $line, FlatImportV2 $bk): void { 'importFullV2' => function (/*bool|FlatBackupItem */$line, FlatImportV2 $bk): void {
if ($line->__name == My::ALIAS_TABLE_NAME) { if ($line->__name == My::ALIAS_TABLE_NAME) {
$bk->cur_alias->clean(); $bk->cur_alias->clean();
$bk->cur_alias->setField('blog_id', (string) $line->blog_id); $bk->cur_alias->setField('blog_id', (string) $line->blog_id);
@ -81,7 +81,7 @@ class Backend extends dcNsProcess
$bk->cur_alias->insert(); $bk->cur_alias->insert();
} }
}, },
'importSingleV2' => function (bool|FlatBackupItem $line, FlatImportV2 $bk): void { 'importSingleV2' => function (/*bool|FlatBackupItem */$line, FlatImportV2 $bk): void {
if ($line->__name == My::ALIAS_TABLE_NAME) { if ($line->__name == My::ALIAS_TABLE_NAME) {
$found = false; $found = false;
foreach ($bk->aliases as $v) { foreach ($bk->aliases as $v) {