* Support php 5.3 for sql parser lib.

This commit is contained in:
qixinzhi
2023-02-10 11:24:24 +08:00
parent 7c2e937eda
commit 7c122a0b29
648 changed files with 13815 additions and 279048 deletions
@@ -1,7 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Tests\Components;
use PhpMyAdmin\SqlParser\Components\ArrayObj;
@@ -10,15 +8,15 @@ use PhpMyAdmin\SqlParser\Tests\TestCase;
class FunctionCallTest extends TestCase
{
public function testBuildArray(): void
public function testBuildArray()
{
$component = new FunctionCall('func', ['a', 'b']);
$component = new FunctionCall('func', array('a', 'b'));
$this->assertEquals('func(a, b)', FunctionCall::build($component));
}
public function testBuildArrayObj(): void
public function testBuildArrayObj()
{
$component = new FunctionCall('func', new ArrayObj(['a', 'b']));
$component = new FunctionCall('func', new ArrayObj(array('a', 'b')));
$this->assertEquals('func(a, b)', FunctionCall::build($component));
}
}