Problem/Motivation
Per https://www.hojtsy.hu/blog/2024-feb-12/onwards-drupal-11-ways-get-involved, Drupal 11 will likely require PHP 8.3
This means this module can adopt new language-level features:
Combine this with:
- Drupal 11 will drop the Tour module, for which the CDN module already has #3216302: Remove Tour support
- Drupal 10.2 brought explicit config validation support in Drupal core, and made it easy to use thanks to
#config_target, for which the CDN module already has #3394172: Adopt Drupal core 10.3 config validation infrastructure
Then it perhaps makes little sense to make a 5.x version do #3216302: Remove Tour support and #3394172: Adopt Drupal core 10.3 config validation infrastructure? On the other hand, those things are possible today, bumping the PHP requirement to PHP 8.3 seems silly today. OTOH, per https://packagist.org/php-statistics, PHP 8.2 adoption already is close to matching PHP 8.1 adoption. PHP 8.3 adoption is growing quickly.
So the choices are:
- 5.x requiring PHP 8.2 and >=10.2, 6.x for >=11 requiring PHP 8.3
- 5.x requiring PHP 8.3 and >=11, no 6.x any time soon
- 5.x requiring PHP 8.3 and
>=10.2>=10.3, no 6.x any time soon
Steps to reproduce
N/A
Proposed resolution
In the spirit of gradual evolution and having new releases support two Drupal core majors simultaneously, I think choice #3 is preferable. See comments #4 + #8.
Remaining tasks
Gather feedback from users of the CDN module.
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Issue fork cdn-3421351
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
wim leersComment #4
wim leersNews since last time:
I wrote 2.5 months ago:
I think there's a 3rd option:
… that'll just mean that Tour support won't be available if you update to
5.xwhile still on Drupal10.2.xBut that's fine.It'll still get us to where we need to be: a new major version that supports Drupal 11, will be around for the lifetime of Drupal 11, and is compatible with Drupal
10.xtoo (just not the first few minors).Note that a
5.xversion will be necessary anyway to support Drupal, see #3428342-5: Automated Drupal 11 compatibility fixes for cdn.Comment #5
wim leersPer #4.
Especially now that tests are green for
4.xon10.3, since #3444812: CdnIntegrationTest::testCss() fails on Drupal >=10.3 since #3432183.Comment #6
wim leersComment #7
wim leersThe
5.xbranch now exists. So let's bump the requirements here.Comment #8
wim leersThe
FullyValidatablevalidation constraint only became available in Drupal 10.3, see https://www.drupal.org/node/3404425.So,
5.xshould require10.3, not10.2.Comment #10
wim leersTo get this MR to pass tests, this issue must also address all deprecations. For example: PHPUnit has become more strict, #3427564: Require `langcode: …` only for simple config that contains translatable values, and more.
Comment #11
wim leersThe two remaining PHPStan errors will be fixed by #3394172: Adopt Drupal core 10.3 config validation infrastructure 👍
Comment #13
wim leers