What is the expected support of this project.

- should our composer file define php runtime?

"config": {
  "platform": {
    "php": "8.1"
  }
},

- Wxt Profile 5.x requires Drupal Core 10.0.11
- Drupal Core min/general support is 8.1
- Contrib modules have generally open build if project run via composer. some (low amount) do actually specify php requirement in their composer files..

Comments

SKAUGHT created an issue. See original summary.

skaught’s picture

Title: PHP 8.1/8.2 support outlines » Wxt Profile PHP 8.1/8.2 support outlines
skaught’s picture

[below]

skaught’s picture

StatusFileSize
new148.01 KB

tagging suggestions

5.0.x Drupal 10.0 php 8.1
5.1.x Drupal 10.1 php 8.1 - see below, core recommend
5.2.x Drupal 10.2 php 8.2

->Drupal 10.2 to be release Dec/2023 (in 2 weeks)
->5.2.x branch release will depend on contrib up flow rate to PHP8.2

  • dev guess: maybe 2/3 months for contrib to elevate.
  • late winter release for Wxt 5.2

these '8.2' commits should be on the 5.2 branch. keep in mind: patches to contrib projects is fast-forwarding their own releases.

skaught’s picture

StatusFileSize
new85.08 KB

it is bleeding edge to be running an 8.2 production server (at this time, nov 2023).

joseph.olstad’s picture

Looks like a reasonable target

liam morland’s picture

Is there a need for WxT to have its minimum PHP version be higher than the version of Drupal core it is running on?

joseph.olstad’s picture

Ya, I noticed this also, however PHP 8.3 works well with wxt 5.2.3 so it's a bit of an excuse to upgrade.

It's a good idea to upgrade to PHP 8.3. Contrib for Drupal 10/11 is mostly very happy with this version of PHP.

liam morland’s picture

Sure, it's great to run on a newer version, but this is about the minimum.

Overall, it is best to follow the PHP requirements of core.

joseph.olstad’s picture

Agreed, it should be composer that decides the PHP version, not WxT,
WxT should aim to be compatible with core. 5.2 targets D10.2 and D10.2 is compatible with PHP 8.1/8.2/8.3.
WxT 5.3 should aim for the same because D10.3 is also compatible with PHP 8.1/8.2/8.3

D11 on the other hand requires minimum PHP 8.3.

joseph.olstad’s picture

With that said, the upgrade to PHP 8.3 is a good idea and I do recommend it. I've been using PHP 8.3 for a while now. It's worth the small effort to upgrade if possible, but not always possible.

I know that folks using certain docker recipes might find it tougher to upgrade. Certain vendors are slower to provide newer versions of PHP.

smulvih2’s picture

I use docker-scaffold for all of my projects, and I am able to use WxT 5.2.x with both PHP8.2 and PHP8.3. Makes it nice not to pin a version of PHP and just use what core defines as a requirement range. I have one project upgrading to WxT 5.3.x but need to stay on PHP8.2 until they certify a new version of their OS. I have another project upgrading WxT to 5.3.x as well as PHP8.3.

smulvih2’s picture

Status: Active » Closed (outdated)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.