5.x to require PHP 8.3 and >=10.3: bump requirements + fix deprecations

Created on 14 February 2024, 10 months ago
Updated 16 May 2024, 7 months ago

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:

  1. https://www.php.net/releases/8.2/en.php
  2. https://www.php.net/releases/8.3/en.php

Combine this with:

  1. Drupal 11 will drop the Tour module, for which the CDN module already has πŸ“Œ [5.x] Remove Tour support Postponed
  2. 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 πŸ“Œ Adopt Drupal core 10.3 config validation infrastructure Active

Then it perhaps makes little sense to make a 5.x version do πŸ“Œ [5.x] Remove Tour support Postponed and πŸ“Œ Adopt Drupal core 10.3 config validation infrastructure Active ? 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:

  1. 5.x requiring PHP 8.2 and >=10.2, 6.x for >=11 requiring PHP 8.3
  2. 5.x requiring PHP 8.3 and >=11, no 6.x any time soon
  3. 5.x requiring PHP 8.3 and >=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

πŸ“Œ Task
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

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