Skip to content

Commit 55e95cc

Browse files
committed
Fix type error when copying tables
Related to 873eb09 and a84cae6. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 47238d6 commit 55e95cc

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

libraries/classes/Table.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,15 +1051,9 @@ public static function moveCopy(
10511051
}
10521052

10531053
/**
1054-
* The old structure of the table..
1054+
* The old structure of the table.
10551055
*/
1056-
$sqlStructure = $exportSqlPlugin->getTableDef(
1057-
$sourceDb,
1058-
$sourceTable,
1059-
$GLOBALS['errorUrl'],
1060-
false,
1061-
false
1062-
);
1056+
$sqlStructure = $exportSqlPlugin->getTableDef($sourceDb, $sourceTable, false, false);
10631057

10641058
unset($noConstraintsComments);
10651059

psalm-baseline.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13069,8 +13069,7 @@
1306913069
<InvalidReturnStatement occurrences="1">
1307013070
<code>$tableAutoIncrement ?? ''</code>
1307113071
</InvalidReturnStatement>
13072-
<MixedArgument occurrences="50">
13073-
<code>$GLOBALS['errorUrl']</code>
13072+
<MixedArgument occurrences="49">
1307413073
<code>$GLOBALS['sql_auto_increments']</code>
1307513074
<code>$GLOBALS['sql_indexes']</code>
1307613075
<code>$_POST['constraint_name'][$masterFieldMd5]</code>
@@ -13289,8 +13288,7 @@
1328913288
<code>$_POST['on_update'][$masterFieldMd5]</code>
1329013289
<code>$_POST['on_update'][$masterFieldMd5]</code>
1329113290
</PossiblyInvalidArrayOffset>
13292-
<PossiblyNullArgument occurrences="11">
13293-
<code>$GLOBALS['errorUrl']</code>
13291+
<PossiblyNullArgument occurrences="10">
1329413292
<code>$GLOBALS['showtable']['Name']</code>
1329513293
<code>$commentsCopyRow['column_name']</code>
1329613294
<code>$commentsCopyRow['comment']</code>

0 commit comments

Comments
 (0)