Skip to content

Commit 0404251

Browse files
committed
Update PHPStan baseline
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 959849f commit 0404251

File tree

1 file changed

+6
-91
lines changed

1 file changed

+6
-91
lines changed

phpstan-baseline.neon

Lines changed: 6 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ parameters:
3030
count: 1
3131
path: libraries/classes/Advisory/Advisor.php
3232

33-
-
34-
message: "#^Parameter \\#3 \\$subject of function preg_replace_callback expects array\\|string, array\\<int, string\\>\\|string\\|null given\\.$#"
35-
count: 1
36-
path: libraries/classes/Advisory/Advisor.php
37-
3833
-
3934
message: "#^Property PhpMyAdmin\\\\Advisory\\\\Advisor\\:\\:\\$globals type has no value type specified in iterable type array\\.$#"
4035
count: 1
@@ -1370,11 +1365,6 @@ parameters:
13701365
count: 1
13711366
path: libraries/classes/Controllers/HomeController.php
13721367

1373-
-
1374-
message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, array\\<int, string\\>\\|string\\|null given\\.$#"
1375-
count: 1
1376-
path: libraries/classes/Controllers/Import/ImportController.php
1377-
13781368
-
13791369
message: "#^Cannot access offset 'eventEditor' on mixed\\.$#"
13801370
count: 1
@@ -1585,6 +1575,11 @@ parameters:
15851575
count: 1
15861576
path: libraries/classes/Controllers/Setup/ServersController.php
15871577

1578+
-
1579+
message: "#^Constructor of class PhpMyAdmin\\\\Controllers\\\\Sql\\\\ColumnPreferencesController has an unused parameter \\$sql\\.$#"
1580+
count: 1
1581+
path: libraries/classes/Controllers/Sql/ColumnPreferencesController.php
1582+
15881583
-
15891584
message: "#^Parameter \\#1 \\$string of function htmlentities expects string, mixed given\\.$#"
15901585
count: 1
@@ -1685,21 +1680,6 @@ parameters:
16851680
count: 1
16861681
path: libraries/classes/Controllers/Table/SearchController.php
16871682

1688-
-
1689-
message: "#^Parameter \\#1 \\$str of function strtoupper expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
1690-
count: 1
1691-
path: libraries/classes/Controllers/Table/SearchController.php
1692-
1693-
-
1694-
message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getIntegerRange\\(\\) expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
1695-
count: 1
1696-
path: libraries/classes/Controllers/Table/SearchController.php
1697-
1698-
-
1699-
message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getTypeOperatorsHtml\\(\\) expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
1700-
count: 1
1701-
path: libraries/classes/Controllers/Table/SearchController.php
1702-
17031683
-
17041684
message: "#^Parameter \\#2 \\$foreign_field of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:foreignDropdown\\(\\) expects string, mixed given\\.$#"
17051685
count: 1
@@ -1736,12 +1716,7 @@ parameters:
17361716
path: libraries/classes/Controllers/Table/SearchController.php
17371717

17381718
-
1739-
message: "#^Method PhpMyAdmin\\\\Controllers\\\\Table\\\\Structure\\\\ChangeController\\:\\:displayHtmlForColumnChange\\(\\) has parameter \\$selected with no value type specified in iterable type array\\.$#"
1740-
count: 1
1741-
path: libraries/classes/Controllers/Table/Structure/ChangeController.php
1742-
1743-
-
1744-
message: "#^Parameter \\#1 \\$selected of method PhpMyAdmin\\\\Controllers\\\\Table\\\\Structure\\\\ChangeController\\:\\:displayHtmlForColumnChange\\(\\) expects array\\|null, mixed given\\.$#"
1719+
message: "#^Parameter \\#1 \\$selected of method PhpMyAdmin\\\\Controllers\\\\Table\\\\Structure\\\\ChangeController\\:\\:displayHtmlForColumnChange\\(\\) expects array\\<string\\>, array\\<int, mixed\\> given\\.$#"
17451720
count: 1
17461721
path: libraries/classes/Controllers/Table/Structure/ChangeController.php
17471722

@@ -1890,21 +1865,6 @@ parameters:
18901865
count: 1
18911866
path: libraries/classes/Controllers/Table/ZoomSearchController.php
18921867

1893-
-
1894-
message: "#^Parameter \\#1 \\$str of function strtoupper expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
1895-
count: 1
1896-
path: libraries/classes/Controllers/Table/ZoomSearchController.php
1897-
1898-
-
1899-
message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getIntegerRange\\(\\) expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
1900-
count: 1
1901-
path: libraries/classes/Controllers/Table/ZoomSearchController.php
1902-
1903-
-
1904-
message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getTypeOperatorsHtml\\(\\) expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
1905-
count: 1
1906-
path: libraries/classes/Controllers/Table/ZoomSearchController.php
1907-
19081868
-
19091869
message: "#^Parameter \\#2 \\$column_index of method PhpMyAdmin\\\\Controllers\\\\Table\\\\ZoomSearchController\\:\\:getColumnProperties\\(\\) expects int, int\\|string\\|false given\\.$#"
19101870
count: 1
@@ -4400,11 +4360,6 @@ parameters:
44004360
count: 1
44014361
path: libraries/classes/Header.php
44024362

4403-
-
4404-
message: "#^Cannot cast array\\<int, string\\>\\|string\\|null to string\\.$#"
4405-
count: 1
4406-
path: libraries/classes/Html/Generator.php
4407-
44084363
-
44094364
message: "#^Casting to string something that's already string\\.$#"
44104365
count: 1
@@ -4600,11 +4555,6 @@ parameters:
46004555
count: 2
46014556
path: libraries/classes/Import.php
46024557

4603-
-
4604-
message: "#^Parameter \\#1 \\$sql of method PhpMyAdmin\\\\Import\\:\\:runQuery\\(\\) expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
4605-
count: 1
4606-
path: libraries/classes/Import.php
4607-
46084558
-
46094559
message: "#^Method PhpMyAdmin\\\\Import\\\\Ajax\\:\\:uploadProgressSetup\\(\\) return type has no value type specified in iterable type array\\.$#"
46104560
count: 1
@@ -5690,11 +5640,6 @@ parameters:
56905640
count: 1
56915641
path: libraries/classes/Plugins/Auth/AuthenticationCookie.php
56925642

5693-
-
5694-
message: "#^Binary operation \"\\.\" between 'WWW\\-Authenticate\\:…' and array\\<int, string\\>\\|string\\|null results in an error\\.$#"
5695-
count: 1
5696-
path: libraries/classes/Plugins/Auth/AuthenticationHttp.php
5697-
56985643
-
56995644
message: "#^Property PhpMyAdmin\\\\Plugins\\\\AuthenticationPlugin\\:\\:\\$user \\(string\\) in isset\\(\\) is not nullable\\.$#"
57005645
count: 1
@@ -5845,21 +5790,11 @@ parameters:
58455790
count: 1
58465791
path: libraries/classes/Plugins/Export/ExportPdf.php
58475792

5848-
-
5849-
message: "#^Binary operation \"\\.\" between '_' and array\\<int, string\\>\\|string\\|null results in an error\\.$#"
5850-
count: 1
5851-
path: libraries/classes/Plugins/Export/ExportPhparray.php
5852-
58535793
-
58545794
message: "#^Method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportPhparray\\:\\:exportData\\(\\) has parameter \\$aliases with no value type specified in iterable type array\\.$#"
58555795
count: 1
58565796
path: libraries/classes/Plugins/Export/ExportPhparray.php
58575797

5858-
-
5859-
message: "#^Parameter \\#2 \\$subject of function preg_match expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
5860-
count: 1
5861-
path: libraries/classes/Plugins/Export/ExportPhparray.php
5862-
58635798
-
58645799
message: "#^Binary operation \"\\.\" between 'FOREIGN KEY ' and array\\|string results in an error\\.$#"
58655800
count: 1
@@ -5945,11 +5880,6 @@ parameters:
59455880
count: 5
59465881
path: libraries/classes/Plugins/Export/ExportSql.php
59475882

5948-
-
5949-
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\\.$#"
5950-
count: 1
5951-
path: libraries/classes/Plugins/Export/ExportSql.php
5952-
59535883
-
59545884
message: "#^Parameter \\#1 \\$sqlQuery of method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportSql\\:\\:replaceWithAliases\\(\\) expects string, string\\|null given\\.$#"
59555885
count: 1
@@ -7225,11 +7155,6 @@ parameters:
72257155
count: 1
72267156
path: libraries/classes/Server/Plugins.php
72277157

7228-
-
7229-
message: "#^Binary operation \"\\.\" between 'PASSWORD\\(\\\\'' and array\\<int, string\\>\\|string\\|null results in an error\\.$#"
7230-
count: 2
7231-
path: libraries/classes/Server/Privileges.php
7232-
72337158
-
72347159
message: "#^Casting to string something that's already string\\.$#"
72357160
count: 1
@@ -8305,11 +8230,6 @@ parameters:
83058230
count: 1
83068231
path: libraries/classes/Table/ColumnsDefinition.php
83078232

8308-
-
8309-
message: "#^Parameter \\#1 \\$str of function rtrim expects string, array\\<int, string\\>\\|string\\|null given\\.$#"
8310-
count: 1
8311-
path: libraries/classes/Table/ColumnsDefinition.php
8312-
83138233
-
83148234
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
83158235
count: 1
@@ -8400,11 +8320,6 @@ parameters:
84008320
count: 2
84018321
path: libraries/classes/ThemeManager.php
84028322

8403-
-
8404-
message: "#^Binary operation \"\\.\" between non\\-falsy\\-string and array\\<int, string\\>\\|string\\|null results in an error\\.$#"
8405-
count: 1
8406-
path: libraries/classes/Tracker.php
8407-
84088323
-
84098324
message: "#^Cannot access property \\$table on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|string\\.$#"
84108325
count: 1

0 commit comments

Comments
 (0)