GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • src
    • Core.php
    • Parser.php
    • Statement.php
    • Statements
      • InsertStatement.php
      • SelectStatement.php
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Core.php‎

Copy file name to clipboardExpand all lines: src/Core.php
+1-1Lines 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
*/
Collapse file

‎src/Parser.php‎

Copy file name to clipboardExpand all lines: src/Parser.php
+1-1Lines 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)
Collapse file

‎src/Statement.php‎

Copy file name to clipboardExpand all lines: src/Statement.php
+1-1Lines 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);
Collapse file

‎src/Statements/InsertStatement.php‎

Copy file name to clipboardExpand all lines: src/Statements/InsertStatement.php
+1Lines 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;
Collapse file

‎src/Statements/SelectStatement.php‎

Copy file name to clipboardExpand all lines: src/Statements/SelectStatement.php
+1Lines 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 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.