Skip to content

Commit aeccfec

Browse files
committed
Update phpstan
Signed-off-by: William Desportes <[email protected]>
1 parent 8ae80e9 commit aeccfec

2 files changed

Lines changed: 21 additions & 36 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"phpmyadmin/coding-standard": "^2.0",
2424
"phpmyadmin/motranslator": "^4.0 || ^5.0",
2525
"phpstan/extension-installer": "^1.0",
26-
"phpstan/phpstan": "^0.12.40",
26+
"phpstan/phpstan": "^0.12.54",
2727
"phpstan/phpstan-phpunit": "^0.12.16",
2828
"phpunit/php-code-coverage": "*",
2929
"phpunit/phpunit": "^7.4 || ^8 || ^9"

phpstan-baseline.neon

Lines changed: 20 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,21 @@ parameters:
125125
count: 1
126126
path: src/Components/ArrayObj.php
127127

128+
-
129+
message: "#^Cannot access property \\$raw on array\\<int, mixed\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#"
130+
count: 2
131+
path: src/Components/ArrayObj.php
132+
133+
-
134+
message: "#^Cannot access property \\$values on array\\<int, mixed\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#"
135+
count: 2
136+
path: src/Components/ArrayObj.php
137+
138+
-
139+
message: "#^Cannot access an offset on array\\<int, mixed\\>\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#"
140+
count: 1
141+
path: src/Components/ArrayObj.php
142+
128143
-
129144
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\:\\:build\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#"
130145
count: 1
@@ -1050,26 +1065,11 @@ parameters:
10501065
count: 1
10511066
path: src/Lexer.php
10521067

1053-
-
1054-
message: "#^Parameter \\#1 \\$token of class PhpMyAdmin\\\\SqlParser\\\\Token constructor expects string, string\\|null given\\.$#"
1055-
count: 7
1056-
path: src/Lexer.php
1057-
1058-
-
1059-
message: "#^Parameter \\#2 \\$str of method PhpMyAdmin\\\\SqlParser\\\\Lexer\\:\\:error\\(\\) expects string, string\\|null given\\.$#"
1060-
count: 2
1061-
path: src/Lexer.php
1062-
10631068
-
10641069
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Lexer\\:\\:\\$delimiter \\(string\\) does not accept null\\.$#"
10651070
count: 1
10661071
path: src/Lexer.php
10671072

1068-
-
1069-
message: "#^Parameter \\#1 \\$str of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:isWhitespace\\(\\) expects string, string\\|null given\\.$#"
1070-
count: 5
1071-
path: src/Lexer.php
1072-
10731073
-
10741074
message: "#^Parameter \\#1 \\$token of class PhpMyAdmin\\\\SqlParser\\\\Token constructor expects string, null given\\.$#"
10751075
count: 1
@@ -1085,31 +1085,11 @@ parameters:
10851085
count: 1
10861086
path: src/Lexer.php
10871087

1088-
-
1089-
message: "#^Parameter \\#1 \\$str of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:isSeparator\\(\\) expects string, string\\|null given\\.$#"
1090-
count: 4
1091-
path: src/Lexer.php
1092-
1093-
-
1094-
message: "#^Parameter \\#1 \\$str of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:isComment\\(\\) expects string, string\\|null given\\.$#"
1095-
count: 2
1096-
path: src/Lexer.php
1097-
1098-
-
1099-
message: "#^Parameter \\#1 \\$str of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:isString\\(\\) expects string, string\\|null given\\.$#"
1100-
count: 1
1101-
path: src/Lexer.php
1102-
11031088
-
11041089
message: "#^Parameter \\#3 \\$flags of class PhpMyAdmin\\\\SqlParser\\\\Token constructor expects int, int\\|null given\\.$#"
11051090
count: 1
11061091
path: src/Lexer.php
11071092

1108-
-
1109-
message: "#^Parameter \\#1 \\$str of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:isSymbol\\(\\) expects string, string\\|null given\\.$#"
1110-
count: 1
1111-
path: src/Lexer.php
1112-
11131093
-
11141094
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Parser\\:\\:\\$STATEMENT_PARSERS type has no value type specified in iterable type array\\.$#"
11151095
count: 1
@@ -1185,6 +1165,11 @@ parameters:
11851165
count: 1
11861166
path: src/Statement.php
11871167

1168+
-
1169+
message: "#^Strict comparison using \\=\\=\\= between int\\<1, max\\> and 0 will always evaluate to false\\.$#"
1170+
count: 1
1171+
path: src/Statement.php
1172+
11881173
-
11891174
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\AlterStatement\\:\\:\\$OPTIONS type has no value type specified in iterable type array\\.$#"
11901175
count: 1

0 commit comments

Comments
 (0)