Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Warning: Use of undefined constant T_MATCH #104

Closed
iamrekas opened this issue Sep 23, 2020 · 2 comments
Closed

PHP Warning: Use of undefined constant T_MATCH #104

iamrekas opened this issue Sep 23, 2020 · 2 comments
Assignees
Labels

Comments

@iamrekas
Copy link

Try update phpcov using phive from 8.1.0 to 8.1.1 have some warnings:

Warning: Use of undefined constant T_MATCH - assumed 'T_MATCH' (this will throw an Error in a future version of PHP) in phar:///home/vscode/.phive/phars/phpcov-8.1.1.phar/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php on line 970

Call Stack:
0.0043 570880 1. {main}() /home/vscode/.phive/phars/phpcov-8.1.1.phar:0
0.0231 980816 2. SebastianBergmann\PHPCOV\Application->run() /home/vscode/.phive/phars/phpcov-8.1.1.phar:799
0.0246 1086992 3. SebastianBergmann\PHPCOV\MergeCommand->run() phar:///home/vscode/.phive/phars/phpcov-8.1.1.phar/src/cli/Application.php:47
0.0387 5774288 4. SebastianBergmann\PHPCOV\MergeCommand->handleReports() phar:///home/vscode/.phive/phars/phpcov-8.1.1.phar/src/cli/MergeCommand.php:84
0.0390 5797600 5. SebastianBergmann\CodeCoverage\Report\Html\Facade->process() phar:///home/vscode/.phive/phars/phpcov-8.1.1.phar/src/cli/Command.php:108
4.5625 16176432 6. SebastianBergmann\CodeCoverage\Report\Html\File->render() phar:///home/vscode/.phive/phars/phpcov-8.1.1.phar/phpunit/php-code-coverage/src/Report/Html/Facade.php:103
4.5641 16182744 7. SebastianBergmann\CodeCoverage\Report\Html\File->renderSourceWithLineCoverage() phar:///home/vscode/.phive/phars/phpcov-8.1.1.phar/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php:113
4.5643 16183288 8. SebastianBergmann\CodeCoverage\Report\Html\File->loadFile() phar:///home/vscode/.phive/phars/phpcov-8.1.1.phar/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php:399

@sebastianbergmann
Copy link
Owner

sebastianbergmann/php-code-coverage#808 is the root cause.

@sebastianbergmann sebastianbergmann self-assigned this Sep 23, 2020
@sebastianbergmann sebastianbergmann changed the title undefined warning PHP Warning: Use of undefined constant T_MATCH Sep 23, 2020
@sebastianbergmann
Copy link
Owner

Version 8.1.2 has been released with an up-to-date version of phpunit/php-code-coverage bundled in the PHAR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants