From 55e95ccd09ff04dd58fa87fac6a0695be3355de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 14 Dec 2022 18:24:11 -0300 Subject: [PATCH] Fix type error when copying tables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Related to 873eb098b922638d33a7748fedc3b33ead33227c and a84cae6c2d5feb725cb174842a4b2189bafeba67. Signed-off-by: MaurĂ­cio Meneghini Fauth --- libraries/classes/Table.php | 10 ++-------- psalm-baseline.xml | 6 ++---- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/libraries/classes/Table.php b/libraries/classes/Table.php index 5d345fe54b..7c6c82fca3 100644 --- a/libraries/classes/Table.php +++ b/libraries/classes/Table.php @@ -1051,15 +1051,9 @@ class Table implements Stringable } /** - * The old structure of the table.. + * The old structure of the table. */ - $sqlStructure = $exportSqlPlugin->getTableDef( - $sourceDb, - $sourceTable, - $GLOBALS['errorUrl'], - false, - false - ); + $sqlStructure = $exportSqlPlugin->getTableDef($sourceDb, $sourceTable, false, false); unset($noConstraintsComments); diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 7de6c051d9..81dde8dd3e 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -13069,8 +13069,7 @@ $tableAutoIncrement ?? '' - - $GLOBALS['errorUrl'] + $GLOBALS['sql_auto_increments'] $GLOBALS['sql_indexes'] $_POST['constraint_name'][$masterFieldMd5] @@ -13289,8 +13288,7 @@ $_POST['on_update'][$masterFieldMd5] $_POST['on_update'][$masterFieldMd5] - - $GLOBALS['errorUrl'] + $GLOBALS['showtable']['Name'] $commentsCopyRow['column_name'] $commentsCopyRow['comment']