You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eab502d
Browse filesBrowse the repository at this point in the historyBrowse files
Fix TypeError on EXPLAIN FOR CONNECTION without integer ID
ExplainStatement::parse() assigned the token after `FOR CONNECTION`
directly to the `int|null $connectionId` property, so any non-integer
token (identifier, float, delimiter, end of query) threw an uncaught
TypeError instead of producing a parser error.
Report "Unexpected token." in that case, as KillStatement does, and
drop the now obsolete phpstan/psalm baseline entries.
Refs CVE-2026-121262
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: des1roer <des1roer@gmail.com>
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
-12Lines changed: 0 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1230,12 +1230,6 @@ parameters:
1230
1230
count:1
1231
1231
path:src/Statements/ExplainStatement.php
1232
1232
1233
-
-
1234
-
message:'#^Cannot access property \$value on PhpMyAdmin\\SqlParser\\Token\|null\.$#'
1235
-
identifier:property.nonObject
1236
-
count:1
1237
-
path:src/Statements/ExplainStatement.php
1238
-
1239
1233
-
1240
1234
message:'#^Class PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement has an uninitialized property \$statementAlias\. Give it default value or assign it in the constructor\.$#'
1241
1235
identifier:property.uninitialized
@@ -1260,12 +1254,6 @@ parameters:
1260
1254
count:1
1261
1255
path:src/Statements/ExplainStatement.php
1262
1256
1263
-
-
1264
-
message:'#^Property PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement\:\:\$connectionId \(int\|null\) does not accept bool\|float\|int\|string\.$#'
1265
-
identifier:assign.propertyType
1266
-
count:1
1267
-
path:src/Statements/ExplainStatement.php
1268
-
1269
1257
-
1270
1258
message:'#^Property PhpMyAdmin\\SqlParser\\Statements\\ExplainStatement\:\:\$explainedDatabase \(string\|null\) does not accept bool\|float\|int\|string\.$#'
0 commit comments