Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a conflict with nikic/php-parser (see contao#2002)
Description ----------- As of version 4.7, the PHP parser supports PHP 8 match expressions, which unfortunately [breaks PHPUnit](nikic/PHP-Parser#672 (comment)) under PHP 7.4. ``` ERROR: ParseError - vendor/phpunit/phpunit/src/Framework/MockObject/Builder/ParametersMatch.php:15:35 - Syntax error, unexpected T_MATCH on line 15 (see https://psalm.dev/173) interface ParametersMatch extends Match ERROR: ParseError - vendor/phpunit/phpunit/src/Framework/MockObject/Builder/ParametersMatch.php:34:40 - Syntax error, unexpected ';', expecting '{' on line 34 (see https://psalm.dev/173) public function with(...$arguments); ERROR: ParseError - vendor/phpunit/phpunit/src/Framework/MockObject/Builder/ParametersMatch.php:47:40 - Syntax error, unexpected ';', expecting '{' on line 47 (see https://psalm.dev/173) public function withAnyParameters(); ``` The issue has been reported in nikic/PHP-Parser#690, so I hope it will be fixed in version 4.7.1. Commits ------- 00ed9a0 Add a conflict with nikic/php-parser
- Loading branch information