* Update sqlparser to fit php8.
This commit is contained in:
+5
-4
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\SqlParser\Tests\Builder;
|
||||
|
||||
use PhpMyAdmin\SqlParser\Parser;
|
||||
@@ -7,7 +9,7 @@ use PhpMyAdmin\SqlParser\Tests\TestCase;
|
||||
|
||||
class TruncateStatementTest extends TestCase
|
||||
{
|
||||
public function testBuilder()
|
||||
public function testBuilder(): void
|
||||
{
|
||||
$query = 'TRUNCATE TABLE mytable;';
|
||||
|
||||
@@ -17,7 +19,7 @@ class TruncateStatementTest extends TestCase
|
||||
$this->assertEquals($query, $stmt->build());
|
||||
}
|
||||
|
||||
public function testBuilderDbtable()
|
||||
public function testBuilderDbtable(): void
|
||||
{
|
||||
$query = 'TRUNCATE TABLE mydb.mytable;';
|
||||
|
||||
@@ -27,7 +29,7 @@ class TruncateStatementTest extends TestCase
|
||||
$this->assertEquals($query, $stmt->build());
|
||||
}
|
||||
|
||||
public function testBuilderDbtableBackQuotes()
|
||||
public function testBuilderDbtableBackQuotes(): void
|
||||
{
|
||||
$query = 'TRUNCATE TABLE `mydb`.`mytable`;';
|
||||
|
||||
@@ -36,5 +38,4 @@ class TruncateStatementTest extends TestCase
|
||||
|
||||
$this->assertEquals($query, $stmt->build());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user