fix non php7.4 type
This commit is contained in:
parent
b48cf32118
commit
5ebee0b174
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue