Closed (fixed)
Project:
View Mode Switch Field
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
27 Apr 2024 at 13:55 UTC
Updated:
27 Apr 2024 at 14:18 UTC
Jump to comment: Most recent
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
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
hctomComment #4
hctomComment #6
hctomThis is fixed by using the maximum supported PHP version for previous major tests now.
Comment #7
hctom