ParseError: syntax error, unexpected '=>'

Created on 21 September 2023, over 1 year ago
Updated 22 September 2023, over 1 year ago

Problem/Motivation

Updated Field Tools on HEAD and I've got this error.

ParseError: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in Composer\Autoload\includeFile() (line 89 of /var/www/project/web/modules/contrib/field_tools/src/Form/ConfigMultipleImportForm.php) #0 phar:///usr/local/bin/drush/.box/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile()

running Drupal Core 9.5.11 on (yet) PHP 7.4.x

Proposed resolution

Looks like the match expression is only available since PHP 8.

So 2 options : Drop D9 support (and PHP 7.4) or drop the match expression to keep D9 support :-)

Remaining tasks

Choose the option and implement it.

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇫🇷France flocondetoile Lyon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024