Unable to export config with PHP 7.4 and v2.0

Created on 23 August 2023, over 1 year ago

Hello,

Since I made the update - Upgrading drupal/link_attributes (1.14.0 => 2.0.1)
I get this warning:

 Le module suivant est installé, mais il est incompatible avec PHP 7.4.33 :
 * Link attributes

And I'm unable to export my config with config split:
ParseError: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in Composer\Autoload\includeFile() (line 111 of /home/www/sited9/web/modules/contrib/link_attributes/src/Plugin/Field/FieldWidget/LinkWithAttributesWidget.php).

As I can't change PHP 7.4 for 8.1 because of Feeds module, can I rollback to 1.14 to avoid this ?

Thanks

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France aiphes

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

Comments & Activities

  • Issue created by @aiphes
  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

    Yes, you should be fine to roll back

  • 🇫🇷France aiphes

    Done.

    - Downgrading drupal/link_attributes (2.0.1 => 1.14.0) then I need to run a clear cache and disabled link_attributes_menu_link_content because of:

     [error]   (Currently using Module manquant ou invalide Le module suivant est marqué comme installé dans la configuration
    core.extension mais est manquant :
     * link_attributes_menu_link_content
    

    After that, I can export my config as usual. Actually, Feeds module doesn't allow me to use PHP8 so I can upgrade the module since Feeds does.

Production build 0.71.5 2024