Skip to content

Commit f752544

Browse files
committed
Fixes from PHPStan level 0
1 parent 4f4b369 commit f752544

5 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/Core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Core
2424
* error might be false positive or a partial result (even a bad one)
2525
* might be needed.
2626
*
27-
* @var Exception[]
27+
* @var \Exception[]
2828
*
2929
* @see Core::error()
3030
*/

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public function parse()
422422
// Statements can start with keywords only.
423423
// Comments, whitespaces, etc. are ignored.
424424
if ($token->type !== Token::TYPE_KEYWORD) {
425-
if (($token->type !== TOKEN::TYPE_COMMENT)
425+
if (($token->type !== Token::TYPE_COMMENT)
426426
&& ($token->type !== Token::TYPE_WHITESPACE)
427427
&& ($token->type !== Token::TYPE_OPERATOR) // `(` and `)`
428428
&& ($token->type !== Token::TYPE_DELIMITER)

src/Statement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function parse(Parser $parser, TokensList $list)
236236
// Only keywords are relevant here. Other parts of the query are
237237
// processed in the functions below.
238238
if ($token->type !== Token::TYPE_KEYWORD) {
239-
if (($token->type !== TOKEN::TYPE_COMMENT)
239+
if (($token->type !== Token::TYPE_COMMENT)
240240
&& ($token->type !== Token::TYPE_WHITESPACE)
241241
) {
242242
$parser->error('Unexpected token.', $token);

src/Statements/InsertStatement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace PhpMyAdmin\SqlParser\Statements;
88

9+
use PhpMyAdmin\SqlParser\Components\ArrayObj;
910
use PhpMyAdmin\SqlParser\Components\Array2d;
1011
use PhpMyAdmin\SqlParser\Components\IntoKeyword;
1112
use PhpMyAdmin\SqlParser\Components\OptionsArray;

src/Statements/SelectStatement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use PhpMyAdmin\SqlParser\Components\IntoKeyword;
1414
use PhpMyAdmin\SqlParser\Components\JoinKeyword;
1515
use PhpMyAdmin\SqlParser\Components\Limit;
16+
use PhpMyAdmin\SqlParser\Components\OptionsArray;
1617
use PhpMyAdmin\SqlParser\Components\OrderKeyword;
1718
use PhpMyAdmin\SqlParser\Statement;
1819

0 commit comments

Comments
 (0)