GeezerVison is showing github.com — Fixes from PHPStan level 0 · phpmyadmin/sql-parser@f752544
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/Core.php +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ class Core |
24 | 24 | * error might be false positive or a partial result (even a bad one) |
25 | 25 | * might be needed. |
26 | 26 | * |
27 | | - * @var Exception[] |
| 27 | + * @var \Exception[] |
28 | 28 | * |
29 | 29 | * @see Core::error() |
30 | 30 | */ |
|
Collapse file
Copy file name to clipboardExpand all lines: src/Parser.php +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -422,7 +422,7 @@ public function parse() |
422 | 422 | // Statements can start with keywords only. |
423 | 423 | // Comments, whitespaces, etc. are ignored. |
424 | 424 | if ($token->type !== Token::TYPE_KEYWORD) { |
425 | | - if (($token->type !== TOKEN::TYPE_COMMENT) |
| 425 | + if (($token->type !== Token::TYPE_COMMENT) |
426 | 426 | && ($token->type !== Token::TYPE_WHITESPACE) |
427 | 427 | && ($token->type !== Token::TYPE_OPERATOR) // `(` and `)` |
428 | 428 | && ($token->type !== Token::TYPE_DELIMITER) |
|
Collapse file
Copy file name to clipboardExpand all lines: src/Statement.php +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -236,7 +236,7 @@ public function parse(Parser $parser, TokensList $list) |
236 | 236 | // Only keywords are relevant here. Other parts of the query are |
237 | 237 | // processed in the functions below. |
238 | 238 | if ($token->type !== Token::TYPE_KEYWORD) { |
239 | | - if (($token->type !== TOKEN::TYPE_COMMENT) |
| 239 | + if (($token->type !== Token::TYPE_COMMENT) |
240 | 240 | && ($token->type !== Token::TYPE_WHITESPACE) |
241 | 241 | ) { |
242 | 242 | $parser->error('Unexpected token.', $token); |
|
Collapse file
Copy file name to clipboardExpand all lines: src/Statements/InsertStatement.php +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
6 | 6 |
|
7 | 7 | namespace PhpMyAdmin\SqlParser\Statements; |
8 | 8 |
|
| 9 | +use PhpMyAdmin\SqlParser\Components\ArrayObj; |
9 | 10 | use PhpMyAdmin\SqlParser\Components\Array2d; |
10 | 11 | use PhpMyAdmin\SqlParser\Components\IntoKeyword; |
11 | 12 | use PhpMyAdmin\SqlParser\Components\OptionsArray; |
|
Collapse file
Copy file name to clipboardExpand all lines: src/Statements/SelectStatement.php +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
13 | 13 | use PhpMyAdmin\SqlParser\Components\IntoKeyword; |
14 | 14 | use PhpMyAdmin\SqlParser\Components\JoinKeyword; |
15 | 15 | use PhpMyAdmin\SqlParser\Components\Limit; |
| 16 | +use PhpMyAdmin\SqlParser\Components\OptionsArray; |
16 | 17 | use PhpMyAdmin\SqlParser\Components\OrderKeyword; |
17 | 18 | use PhpMyAdmin\SqlParser\Statement; |
18 | 19 |
|
|