* Update sqlparser to fit php8.

This commit is contained in:
songchenxuan
2024-03-19 14:52:48 +08:00
parent 39f5d2905b
commit ea516fd9b3
663 changed files with 140347 additions and 16174 deletions
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Tests\Misc;
use PhpMyAdmin\SqlParser\Tests\TestCase;
@@ -8,26 +10,40 @@ class BugsTest extends TestCase
{
/**
* @dataProvider bugProvider
*
* @param mixed $test
*/
public function testBug($test)
public function testBug(string $test): void
{
$this->runParserTest($test);
}
public function bugProvider()
/**
* @return string[][]
*/
public function bugProvider(): array
{
return array(
array('bugs/gh9'),
array('bugs/gh14'),
array('bugs/gh16'),
array('bugs/gh317'),
array('bugs/pma11800'),
array('bugs/pma11836'),
array('bugs/pma11843'),
array('bugs/pma11867'),
array('bugs/pma11879')
);
return [
['bugs/fuzz1'],
['bugs/fuzz2'],
['bugs/fuzz3'],
['bugs/fuzz4'],
['bugs/gh9'],
['bugs/gh14'],
['bugs/gh16'],
['bugs/gh202'],
['bugs/gh234'],
['bugs/gh317'],
['bugs/gh412'],
['bugs/gh478'],
['bugs/gh492'],
['bugs/gh496'],
['bugs/gh498'],
['bugs/gh499'],
['bugs/gh508'],
['bugs/gh511'],
['bugs/pma11800'],
['bugs/pma11836'],
['bugs/pma11843'],
['bugs/pma11879'],
];
}
}