Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2022-11-05 20:38:06 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2022-11-05 20:38:06 +0300
commit04042517a51b76cb030167ffdcb87ba350ecabd8 (patch)
treeb4e7f37f993505a57ebd5f0badf0aac0fd41960c
parent959849f446825a03d28d19aa35bc18d9dd14ce98 (diff)
Update PHPStan baseline
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
-rw-r--r--phpstan-baseline.neon97
1 files changed, 6 insertions, 91 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 7add82f9b8..f65a202c77 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -31,11 +31,6 @@ parameters:
path: libraries/classes/Advisory/Advisor.php
-
- message: "#^Parameter \\#3 \\$subject of function preg_replace_callback expects array\\|string, array\\<int, string\\>\\|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
path: libraries/classes/Advisory/Advisor.php
@@ -1371,11 +1366,6 @@ parameters:
path: libraries/classes/Controllers/HomeController.php
-
- message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, array\\<int, string\\>\\|string\\|null given\\.$#"
- count: 1
- path: libraries/classes/Controllers/Import/ImportController.php
-
- -
message: "#^Cannot access offset 'eventEditor' on mixed\\.$#"
count: 1
path: libraries/classes/Controllers/LintController.php
@@ -1586,6 +1576,11 @@ parameters:
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
path: libraries/classes/Controllers/Sql/SetValuesController.php
@@ -1686,21 +1681,6 @@ parameters:
path: libraries/classes/Controllers/Table/SearchController.php
-
- message: "#^Parameter \\#1 \\$str of function strtoupper expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
- count: 1
- path: libraries/classes/Controllers/Table/SearchController.php
-
- -
- message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getIntegerRange\\(\\) expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
- count: 1
- path: libraries/classes/Controllers/Table/SearchController.php
-
- -
- message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getTypeOperatorsHtml\\(\\) expects string, array\\<int, string\\>\\|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
path: libraries/classes/Controllers/Table/SearchController.php
@@ -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\\<string\\>, array\\<int, mixed\\> given\\.$#"
count: 1
path: libraries/classes/Controllers/Table/Structure/ChangeController.php
@@ -1891,21 +1866,6 @@ parameters:
path: libraries/classes/Controllers/Table/ZoomSearchController.php
-
- message: "#^Parameter \\#1 \\$str of function strtoupper expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
- count: 1
- path: libraries/classes/Controllers/Table/ZoomSearchController.php
-
- -
- message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getIntegerRange\\(\\) expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
- count: 1
- path: libraries/classes/Controllers/Table/ZoomSearchController.php
-
- -
- message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getTypeOperatorsHtml\\(\\) expects string, array\\<int, string\\>\\|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
path: libraries/classes/Controllers/Table/ZoomSearchController.php
@@ -4401,11 +4361,6 @@ parameters:
path: libraries/classes/Header.php
-
- message: "#^Cannot cast array\\<int, string\\>\\|string\\|null to string\\.$#"
- count: 1
- path: libraries/classes/Html/Generator.php
-
- -
message: "#^Casting to string something that's already string\\.$#"
count: 1
path: libraries/classes/Html/Generator.php
@@ -4601,11 +4556,6 @@ parameters:
path: libraries/classes/Import.php
-
- message: "#^Parameter \\#1 \\$sql of method PhpMyAdmin\\\\Import\\:\\:runQuery\\(\\) expects string, array\\<int, string\\>\\|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
path: libraries/classes/Import/Ajax.php
@@ -5691,11 +5641,6 @@ parameters:
path: libraries/classes/Plugins/Auth/AuthenticationCookie.php
-
- message: "#^Binary operation \"\\.\" between 'WWW\\-Authenticate\\:…' and array\\<int, string\\>\\|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
path: libraries/classes/Plugins/Auth/AuthenticationHttp.php
@@ -5846,21 +5791,11 @@ parameters:
path: libraries/classes/Plugins/Export/ExportPdf.php
-
- message: "#^Binary operation \"\\.\" between '_' and array\\<int, string\\>\\|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\\<int, string\\>\\|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
path: libraries/classes/Plugins/Export/ExportSql.php
@@ -5946,11 +5881,6 @@ parameters:
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\\<int, string\\>\\|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
path: libraries/classes/Plugins/Export/ExportSql.php
@@ -7226,11 +7156,6 @@ parameters:
path: libraries/classes/Server/Plugins.php
-
- message: "#^Binary operation \"\\.\" between 'PASSWORD\\(\\\\'' and array\\<int, string\\>\\|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
path: libraries/classes/Server/Privileges.php
@@ -8306,11 +8231,6 @@ parameters:
path: libraries/classes/Table/ColumnsDefinition.php
-
- message: "#^Parameter \\#1 \\$str of function rtrim expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
- count: 1
- path: libraries/classes/Table/ColumnsDefinition.php
-
- -
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
count: 1
path: libraries/classes/Table/ColumnsDefinition.php
@@ -8401,11 +8321,6 @@ parameters:
path: libraries/classes/ThemeManager.php
-
- message: "#^Binary operation \"\\.\" between non\\-falsy\\-string and array\\<int, string\\>\\|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
path: libraries/classes/Tracker.php