From 07b348be7849ab8b00af08337dafb3a3e52121f6 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 28 Apr 2021 00:02:20 +0200 Subject: [PATCH] Update psalm and phpstan baselines Signed-off-by: William Desportes --- phpstan-baseline.neon | 50 ------------------------------------------- psalm-baseline.xml | 12 ++++++----- 2 files changed, 7 insertions(+), 55 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index b81293b0cd..48937e9203 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -205,11 +205,6 @@ parameters: count: 1 path: libraries/classes/Controllers/Server/CollationsController.php - - - message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#" - count: 1 - path: libraries/classes/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\|null given\\.$#" count: 7 @@ -1115,31 +1110,11 @@ parameters: count: 1 path: libraries/classes/Plugins/Auth/AuthenticationSignon.php - - - message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#" - count: 1 - path: libraries/classes/Plugins/Export/ExportCsv.php - - - - message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#" - count: 1 - path: libraries/classes/Plugins/Export/ExportHtmlword.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportJson\\:\\:encode\\(\\) should return string but returns string\\|false\\.$#" count: 1 path: libraries/classes/Plugins/Export/ExportJson.php - - - message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#" - count: 1 - path: libraries/classes/Plugins/Export/ExportOds.php - - - - message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#" - count: 1 - path: libraries/classes/Plugins/Export/ExportOdt.php - - message: "#^Argument of an invalid type array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj supplied for foreach, only iterables are supported\\.$#" count: 2 @@ -1175,31 +1150,11 @@ parameters: count: 1 path: libraries/classes/Plugins/Export/ExportSql.php - - - message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#" - count: 1 - path: libraries/classes/Plugins/Export/ExportSql.php - - - - message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#" - count: 1 - path: libraries/classes/Plugins/Export/ExportTexytext.php - - message: "#^Strict comparison using \\=\\=\\= between array and null will always evaluate to false\\.$#" count: 1 path: libraries/classes/Plugins/Export/ExportXml.php - - - message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#" - count: 1 - path: libraries/classes/Plugins/Export/ExportXml.php - - - - message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#" - count: 1 - path: libraries/classes/Plugins/Export/ExportYaml.php - - message: "#^Argument of an invalid type array\\\\|false supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -1970,11 +1925,6 @@ parameters: count: 1 path: libraries/classes/Server/Privileges.php - - - message: "#^Strict comparison using \\=\\=\\= between string and null will always evaluate to false\\.$#" - count: 1 - path: libraries/classes/Server/Privileges.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:tryQuery\\(\\) expects string, string\\|null given\\.$#" count: 1 diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 1ee4d08479..e42d94e509 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + (int) $this->id @@ -2306,6 +2306,12 @@ + + $output + + + array{'File'?: string, 'Position'?: string} + $host @@ -2559,10 +2565,6 @@ - - $form_params['db'] - $form_params['table'] - $submit_fulltext