Skip to content

Commit 6e34c69

Browse files
committed
Update phpstan baseline
Signed-off-by: William Desportes <[email protected]>
1 parent 097191c commit 6e34c69

1 file changed

Lines changed: 36 additions & 6 deletions

File tree

phpstan-baseline.neon

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,31 @@ parameters:
4545
count: 1
4646
path: src/Components/Array2d.php
4747

48+
-
49+
message: "#^Cannot access an offset on array\\<int, mixed\\>\\|ArrayAccess\\|static\\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\)\\.$#"
50+
count: 1
51+
path: src/Components/ArrayObj.php
52+
53+
-
54+
message: "#^Cannot access property \\$raw on array\\<int, mixed\\>\\|ArrayAccess\\|static\\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\)\\.$#"
55+
count: 2
56+
path: src/Components/ArrayObj.php
57+
58+
-
59+
message: "#^Cannot access property \\$values on array\\<int, mixed\\>\\|ArrayAccess\\|static\\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\)\\.$#"
60+
count: 2
61+
path: src/Components/ArrayObj.php
62+
4863
-
4964
message: "#^Cannot call static method parse\\(\\) on mixed\\.$#"
5065
count: 1
5166
path: src/Components/ArrayObj.php
5267

68+
-
69+
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\:\\:parse\\(\\) should return array\\<PhpMyAdmin\\\\SqlParser\\\\Component\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj but returns array\\<int, mixed\\>\\|ArrayAccess\\|static\\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\)\\.$#"
70+
count: 1
71+
path: src/Components/ArrayObj.php
72+
5373
-
5474
message: "#^Binary operation \"\\.\" between ' AS ' and array\\<string\\>\\|string results in an error\\.$#"
5575
count: 1
@@ -940,6 +960,11 @@ parameters:
940960
count: 1
941961
path: src/Utils/Query.php
942962

963+
-
964+
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Query\\:\\:getFlags\\(\\) should return array\\{distinct\\?\\: bool, drop_database\\?\\: bool, group\\?\\: bool, having\\?\\: bool, is_affected\\?\\: bool, is_analyse\\?\\: bool, is_count\\?\\: bool, is_delete\\?\\: bool, \\.\\.\\.\\} but returns non\\-empty\\-array\\<literal\\-string&non\\-falsy\\-string, bool\\|\\(literal\\-string&non\\-falsy\\-string\\)\\>\\.$#"
965+
count: 1
966+
path: src/Utils/Query.php
967+
943968
-
944969
message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:build\\(\\) expects array\\<PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression, object given\\.$#"
945970
count: 1
@@ -950,6 +975,16 @@ parameters:
950975
count: 3
951976
path: src/Utils/Routine.php
952977

978+
-
979+
message: "#^Cannot assign new offset to array\\<int, mixed\\>\\|string\\.$#"
980+
count: 1
981+
path: src/Utils/Routine.php
982+
983+
-
984+
message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\<int, mixed\\>\\|string given\\.$#"
985+
count: 1
986+
path: src/Utils/Routine.php
987+
953988
-
954989
message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#"
955990
count: 2
@@ -1012,12 +1047,7 @@ parameters:
10121047

10131048
-
10141049
message: "#^Cannot access offset 0 on array\\<PhpMyAdmin\\\\SqlParser\\\\Component\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#"
1015-
count: 2
1016-
path: tests/Components/ArrayObjTest.php
1017-
1018-
-
1019-
message: "#^Cannot access offset 1 on array\\<PhpMyAdmin\\\\SqlParser\\\\Component\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#"
1020-
count: 2
1050+
count: 1
10211051
path: tests/Components/ArrayObjTest.php
10221052

10231053
-

0 commit comments

Comments
 (0)