Skip to content

PHP 8 compatibility #315

@ibennetch

Description

@ibennetch

When running the tests (./vendor/phpunit/phpunit) with PHP 8.0.0rc1, I get 41 errors. They all seem to relate to ParseError: syntax error, unexpected token "match"

For example,

1) PhpMyAdmin\SqlParser\Tests\Utils\CLITest::testRunHighlight with data set #0 (array('SELECT 1'), '^[[35mSELECT\n    ^[[92m1^[[0m\n', 0)
ParseError: syntax error, unexpected token "match"

/var/www/pma-dev/sql-parser/tests/Utils/CLITest.php:18
/var/www/pma-dev/sql-parser/tests/Utils/CLITest.php:55

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions