PHP 8 requirement for the latest 3.x version

Created on 30 September 2024, 3 months ago

Problem/Motivation

I still use some Drupal 9.5 websites with PHP 7.4.

The requirements with the Drupal core version (^9.2) seem fine but there is no specific requirement for the PHP version.

With PHP 7.4, I encounter the following error :

Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in /var/www/html/d9-neoville/root/web/modules/contrib/field_group/src/FieldGroupFormatterPluginManager.php on line 42

I have erreur with 3.6 version. (Maybe also 3.5)

Steps to reproduce

Environnement :
- Drupal 9.5
- PHP 7.4

Steps :
- composer require drupal/field_group:^3.6
- drush cr or access on the website

Proposed resolution

Add a PHP version requirement in the composer.json (cf. patch) to prevent installation and/or indicate the required PHP version on the module page

πŸ› Bug report
Status

Active

Version

3.6

Component

Code

Created by

πŸ‡«πŸ‡·France rmpereira

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

Comments & Activities

Production build 0.71.5 2024