diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 7add82f9b8..f65a202c77 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -30,11 +30,6 @@ parameters: count: 1 path: libraries/classes/Advisory/Advisor.php - - - message: "#^Parameter \\#3 \\$subject of function preg_replace_callback expects array\\|string, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Advisory/Advisor.php - - message: "#^Property PhpMyAdmin\\\\Advisory\\\\Advisor\\:\\:\\$globals type has no value type specified in iterable type array\\.$#" count: 1 @@ -1370,11 +1365,6 @@ parameters: count: 1 path: libraries/classes/Controllers/HomeController.php - - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Controllers/Import/ImportController.php - - message: "#^Cannot access offset 'eventEditor' on mixed\\.$#" count: 1 @@ -1585,6 +1575,11 @@ parameters: count: 1 path: libraries/classes/Controllers/Setup/ServersController.php + - + message: "#^Constructor of class PhpMyAdmin\\\\Controllers\\\\Sql\\\\ColumnPreferencesController has an unused parameter \\$sql\\.$#" + count: 1 + path: libraries/classes/Controllers/Sql/ColumnPreferencesController.php + - message: "#^Parameter \\#1 \\$string of function htmlentities expects string, mixed given\\.$#" count: 1 @@ -1685,21 +1680,6 @@ parameters: count: 1 path: libraries/classes/Controllers/Table/SearchController.php - - - message: "#^Parameter \\#1 \\$str of function strtoupper expects string, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Controllers/Table/SearchController.php - - - - message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getIntegerRange\\(\\) expects string, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Controllers/Table/SearchController.php - - - - message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getTypeOperatorsHtml\\(\\) expects string, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Controllers/Table/SearchController.php - - message: "#^Parameter \\#2 \\$foreign_field of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:foreignDropdown\\(\\) expects string, mixed given\\.$#" count: 1 @@ -1736,12 +1716,7 @@ parameters: path: libraries/classes/Controllers/Table/SearchController.php - - message: "#^Method PhpMyAdmin\\\\Controllers\\\\Table\\\\Structure\\\\ChangeController\\:\\:displayHtmlForColumnChange\\(\\) has parameter \\$selected with no value type specified in iterable type array\\.$#" - count: 1 - path: libraries/classes/Controllers/Table/Structure/ChangeController.php - - - - message: "#^Parameter \\#1 \\$selected of method PhpMyAdmin\\\\Controllers\\\\Table\\\\Structure\\\\ChangeController\\:\\:displayHtmlForColumnChange\\(\\) expects array\\|null, mixed given\\.$#" + message: "#^Parameter \\#1 \\$selected of method PhpMyAdmin\\\\Controllers\\\\Table\\\\Structure\\\\ChangeController\\:\\:displayHtmlForColumnChange\\(\\) expects array\\, array\\ given\\.$#" count: 1 path: libraries/classes/Controllers/Table/Structure/ChangeController.php @@ -1890,21 +1865,6 @@ parameters: count: 1 path: libraries/classes/Controllers/Table/ZoomSearchController.php - - - message: "#^Parameter \\#1 \\$str of function strtoupper expects string, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Controllers/Table/ZoomSearchController.php - - - - message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getIntegerRange\\(\\) expects string, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Controllers/Table/ZoomSearchController.php - - - - message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getTypeOperatorsHtml\\(\\) expects string, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#2 \\$column_index of method PhpMyAdmin\\\\Controllers\\\\Table\\\\ZoomSearchController\\:\\:getColumnProperties\\(\\) expects int, int\\|string\\|false given\\.$#" count: 1 @@ -4400,11 +4360,6 @@ parameters: count: 1 path: libraries/classes/Header.php - - - message: "#^Cannot cast array\\\\|string\\|null to string\\.$#" - count: 1 - path: libraries/classes/Html/Generator.php - - message: "#^Casting to string something that's already string\\.$#" count: 1 @@ -4600,11 +4555,6 @@ parameters: count: 2 path: libraries/classes/Import.php - - - message: "#^Parameter \\#1 \\$sql of method PhpMyAdmin\\\\Import\\:\\:runQuery\\(\\) expects string, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Import.php - - message: "#^Method PhpMyAdmin\\\\Import\\\\Ajax\\:\\:uploadProgressSetup\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -5690,11 +5640,6 @@ parameters: count: 1 path: libraries/classes/Plugins/Auth/AuthenticationCookie.php - - - message: "#^Binary operation \"\\.\" between 'WWW\\-Authenticate\\:…' and array\\\\|string\\|null results in an error\\.$#" - count: 1 - path: libraries/classes/Plugins/Auth/AuthenticationHttp.php - - message: "#^Property PhpMyAdmin\\\\Plugins\\\\AuthenticationPlugin\\:\\:\\$user \\(string\\) in isset\\(\\) is not nullable\\.$#" count: 1 @@ -5845,21 +5790,11 @@ parameters: count: 1 path: libraries/classes/Plugins/Export/ExportPdf.php - - - message: "#^Binary operation \"\\.\" between '_' and array\\\\|string\\|null results in an error\\.$#" - count: 1 - path: libraries/classes/Plugins/Export/ExportPhparray.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportPhparray\\:\\:exportData\\(\\) has parameter \\$aliases with no value type specified in iterable type array\\.$#" count: 1 path: libraries/classes/Plugins/Export/ExportPhparray.php - - - message: "#^Parameter \\#2 \\$subject of function preg_match expects string, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Plugins/Export/ExportPhparray.php - - message: "#^Binary operation \"\\.\" between 'FOREIGN KEY ' and array\\|string results in an error\\.$#" count: 1 @@ -5945,11 +5880,6 @@ parameters: count: 5 path: libraries/classes/Plugins/Export/ExportSql.php - - - message: "#^Parameter \\#1 \\$list of class PhpMyAdmin\\\\SqlParser\\\\Parser constructor expects PhpMyAdmin\\\\SqlParser\\\\TokensList\\|PhpMyAdmin\\\\SqlParser\\\\UtfString\\|string\\|null, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#1 \\$sqlQuery of method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportSql\\:\\:replaceWithAliases\\(\\) expects string, string\\|null given\\.$#" count: 1 @@ -7225,11 +7155,6 @@ parameters: count: 1 path: libraries/classes/Server/Plugins.php - - - message: "#^Binary operation \"\\.\" between 'PASSWORD\\(\\\\'' and array\\\\|string\\|null results in an error\\.$#" - count: 2 - path: libraries/classes/Server/Privileges.php - - message: "#^Casting to string something that's already string\\.$#" count: 1 @@ -8305,11 +8230,6 @@ parameters: count: 1 path: libraries/classes/Table/ColumnsDefinition.php - - - message: "#^Parameter \\#1 \\$str of function rtrim expects string, array\\\\|string\\|null given\\.$#" - count: 1 - path: libraries/classes/Table/ColumnsDefinition.php - - message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#" count: 1 @@ -8400,11 +8320,6 @@ parameters: count: 2 path: libraries/classes/ThemeManager.php - - - message: "#^Binary operation \"\\.\" between non\\-falsy\\-string and array\\\\|string\\|null results in an error\\.$#" - count: 1 - path: libraries/classes/Tracker.php - - message: "#^Cannot access property \\$table on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|string\\.$#" count: 1