Currently the PHPUnit job for previous major tests in GitLab CI fail with the following error (due to PHP 7.4 being used):
There was 1 error:
1) Drupal\Tests\view_mode_switch\Functional\ViewModeSwitchDiffTest::testViewModeSwitchDiff
ParseError: syntax error, unexpected ')', expecting variable (T_VARIABLE)
/builds/project/view_mode_switch/web/modules/contrib/diff/src/DiffBuilderManager.php:77
It originally happens in diff
module's code, which is a dev dependency of this module for tests. It uses a trailing comma in constructor parameters list, which is only available since PHP 8.0 (but diff
module unfortunately does not require at least PHP 8).
See current PHPUnit Gitlab CI pipelines
n/a
n/a
n/a
Fixed
2.0
Code