Lack of PHP compatibility constraint

Created on 7 September 2023, over 1 year ago
Updated 18 November 2023, about 1 year ago

Problem/Motivation

Since version 2.1.0 is using union types - https://git.drupalcode.org/project/entity_information/-/blob/2.1.0/src/E... - can we have a composer.json file in the module that will define which PHP is the version compatible with?
Composer is not aware of that 2.1.0 is compatible with PHP ^8, and updating the module on a project with PHP 7.4 led me to the following error:
ParseError: syntax error, unexpected '|', expecting ';' or '{' in /var/www/html/drupal/modules/contrib/entity_information/src/EntityInformationManager.php on line 222

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024