Unstated dependency on PHP 8.1

Created on 15 August 2025, 12 days ago

Problem/Motivation

Issue 📌 Use attributes instead of annotations Active changed the PHPDoc annotations that we had been using to declare sitemap plugins into PHP attributes.

In comment #6 📌 Use attributes instead of annotations Active , @berramou was correct that PHP attributes themselves were introduced in PHP 8.0; but the attributes introduced in that ticket used the new keyword, and support for using the new keyword in attributes was actually only introduced in PHP 8.1.

This leaves the module in a state where it declares its minimum PHP dependency as PHP 8.0, but it actually depends on PHP 8.1.

Note also that PHP 8.1 is Drupal 10 core's minimum PHP version , and we already say we support Drupal core 10.2 or higher.

Proposed resolution

Update sitemap.info.yml and composer.json to say our minimum PHP version is 8.1.

Remaining tasks

  1. Write a patch
  2. Review and feedback
  3. RTBC and feedback
  4. Commit
  5. Release

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada mparker17 UTC-4

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