summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2019-05-08 15:22:30 -0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2019-05-08 15:22:30 -0300
commitce4e30eae3f25af632ae88c58e493fbee188cda4 (patch)
treec36cc5e5fad959d446ca3c137a376d09e1d7add8
parent59af8990ed2ede94d4ba1c441954a95086c4c36b (diff)
downloadsql-parser-ce4e30eae3f25af632ae88c58e493fbee188cda4.zip
sql-parser-ce4e30eae3f25af632ae88c58e493fbee188cda4.tar.gz
sql-parser-ce4e30eae3f25af632ae88c58e493fbee188cda4.tar.bz2
Fix errors detected by PHPStan at level 0
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
-rw-r--r--src/Statement.php2
-rw-r--r--src/Statements/SelectStatement.php1
-rw-r--r--tests/Builder/ExplainStatementTest.php (renamed from tests/Builder/ExplainStatement.php)0
-rw-r--r--tests/Components/ComponentTest.php2
-rw-r--r--tests/Misc/BugsTest.php2
-rw-r--r--tests/Parser/ExplainStatementTest.php (renamed from tests/Parser/ExplainStatement.php)0
-rw-r--r--tests/Utils/FormatterTest.php2
7 files changed, 6 insertions, 3 deletions
diff --git a/src/Statement.php b/src/Statement.php
index 439eb13..e7238f2 100644
--- a/src/Statement.php
+++ b/src/Statement.php
@@ -56,6 +56,8 @@ abstract class Statement
*/
public static $CLAUSES = [];
+ public static $END_OPTIONS = [];
+
/**
* The options of this query.
*
diff --git a/src/Statements/SelectStatement.php b/src/Statements/SelectStatement.php
index dab8db4..a770227 100644
--- a/src/Statements/SelectStatement.php
+++ b/src/Statements/SelectStatement.php
@@ -10,6 +10,7 @@ use PhpMyAdmin\SqlParser\Components\ArrayObj;
use PhpMyAdmin\SqlParser\Components\Condition;
use PhpMyAdmin\SqlParser\Components\Expression;
use PhpMyAdmin\SqlParser\Components\FunctionCall;
+use PhpMyAdmin\SqlParser\Components\IndexHint;
use PhpMyAdmin\SqlParser\Components\IntoKeyword;
use PhpMyAdmin\SqlParser\Components\JoinKeyword;
use PhpMyAdmin\SqlParser\Components\Limit;
diff --git a/tests/Builder/ExplainStatement.php b/tests/Builder/ExplainStatementTest.php
index 7b6215f..7b6215f 100644
--- a/tests/Builder/ExplainStatement.php
+++ b/tests/Builder/ExplainStatementTest.php
diff --git a/tests/Components/ComponentTest.php b/tests/Components/ComponentTest.php
index fec0f56..2595202 100644
--- a/tests/Components/ComponentTest.php
+++ b/tests/Components/ComponentTest.php
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);
-namespace PhpMyAdmin\SqlParser\Tests\Parser;
+namespace PhpMyAdmin\SqlParser\Tests\Components;
use PhpMyAdmin\SqlParser\Component;
use PhpMyAdmin\SqlParser\Parser;
diff --git a/tests/Misc/BugsTest.php b/tests/Misc/BugsTest.php
index 41c2f3a..3769b1f 100644
--- a/tests/Misc/BugsTest.php
+++ b/tests/Misc/BugsTest.php
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);
-namespace PhpMyAdmin\SqlParser\Tests\Parser;
+namespace PhpMyAdmin\SqlParser\Tests\Misc;
use PhpMyAdmin\SqlParser\Tests\TestCase;
diff --git a/tests/Parser/ExplainStatement.php b/tests/Parser/ExplainStatementTest.php
index a6a51af..a6a51af 100644
--- a/tests/Parser/ExplainStatement.php
+++ b/tests/Parser/ExplainStatementTest.php
diff --git a/tests/Utils/FormatterTest.php b/tests/Utils/FormatterTest.php
index 7776a8e..de9ed8b 100644
--- a/tests/Utils/FormatterTest.php
+++ b/tests/Utils/FormatterTest.php
@@ -6,7 +6,7 @@ namespace PhpMyAdmin\SqlParser\Tests\Utils;
use PhpMyAdmin\SqlParser\Tests\TestCase;
use PhpMyAdmin\SqlParser\Utils\Formatter;
-class FormatTest extends TestCase
+class FormatterTest extends TestCase
{
/**
* @dataProvider mergeFormats