Essentially the same as #3143404: ParseError: syntax error, unexpected ')' in bootstrap_layout_builder/src/Plugin/Layout/BootstrapLayout.php on line 54 but for 2.0.
This module currently requires PHP versions that permit trailing commas in function calls, which was first implemented in PHP 7.3. See: https://wiki.php.net/rfc/trailing-comma-function-calls. While Drupal 9 does require PHP 7.3+, versions of Drupal 8 that this module supports do not. Attempting to install this module with PHP versions < 7.3 will result in errors similar to
ParseError: syntax error, unexpected ')' in bootstrap_layout_builder...
Options to fix this would include:
- Refactoring code to not use trailing commas in function calls (and any other PHP <=7.3 breaking changes)
- Changing the module's core version requirement to only be D9+
- Noting somewhere that this module requires at least PHP 7.3
Option 3 may be sufficient.
Comments
Comment #2
mahmoud-zayed commentedComment #4
mahmoud-zayed commentedThanks Chris for reporting this issue.
Comment #5
mahmoud-zayed commented