fix non php7.4 type

master
Jean-Christian Paul Denis 2023-06-16 21:33:22 +02:00
parent b48cf32118
commit 5ebee0b174
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ class Backend extends dcNsProcess
$bk->alias = new Alias();
$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) {
$bk->cur_alias->clean();
$bk->cur_alias->setField('blog_id', (string) $line->blog_id);
@ -81,7 +81,7 @@ class Backend extends dcNsProcess
$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) {
$found = false;
foreach ($bk->aliases as $v) {