Composer facade should acknowledge php key from info.yml

Created on 5 April 2023, about 1 year ago
Updated 24 October 2023, 8 months ago

Problem/Motivation

Info files ā†’ can say things like php: 8.0:

php: 8.0: defines the minimal PHP version that is required for your module. Users will not be able to enable the module if they use an older PHP version. This can be used to avoid errors if your module uses newer functions that did not exist in earlier PHP versions.

However, since the Composer facade does not create a constraint based on this information, it's possible for Composer to install the module in favor of a more-compatible version.

Steps to reproduce

Proposed resolution

Have the Composer Facade add a PHP version constraint which matches the php key in the info file.

Remaining tasks

User interface changes

API changes

Data model changes

āœØ Feature request
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

šŸ‡ŗšŸ‡øUnited States Mile23 Seattle, WA

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

Comments & Activities

Production build 0.69.0 2024