Problem/Motivation
It is possible to run "composer create-project" to download a site using e.g PHP 7.2 but then only have it fail later on during the install when the codebase realizes that APIs from PHP 7.3 are not available.
Steps to reproduce
Run "composer create-project" with PHP 7.2.
Proposed resolution
Update the root composer.json file to list PHP 7.3 as a requirement.
Remaining tasks
Update composer.json.
User interface changes
n/a
API changes
n/a
Data model changes
n/a
Release notes snippet
TBD
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | interdiff_2-5.txt | 429 bytes | raman.b |
| #5 | 3170285-5.patch | 952 bytes | raman.b |
| #2 | drupal-n3170285-2.patch | 471 bytes | damienmckenna |
Comments
Comment #2
damienmckennaDoes this solve the problem?
Comment #3
damienmckennaComment #5
raman.b commentedComment #6
damienmckennaAh, thanks.
Comment #7
longwaveRationale makes sense, patch is as minimal as can be.
Comment #8
alexpott@DamienMcKenna how are you running composer create-project? The supported way and the unsupported way both report an error.
Comment #13
quietone commentedIn #8 the issue was not reproducible. In the same comment more information was asked for 2 years ago and none has been supplied. Furthermore, since support for PHP 7.3 is dropped in Drupal 9.4 this may be outdated.
Since we need more information to move forward with this issue, I am setting the status to Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #14
mile23If it's desired that the metapackages have the same PHP constraints as the drupal/core package, then the solution is this:
Update the metapackage generator to include the PHP constraint information from the core package. I believe there is a test which builds using the metapackages, which would fail if the testbot is on the wrong version of PHP, so look out for that.
This IS refers to an old version of core and is specific to recommended-project. The issue needs a little rescope to be more general.
Comment #17
smustgrave commentedClosing as outdated as no supported versions of Drupal support 7.3