From 55d3e369be6a2b127f8a223c2f6bc727ae22ac77 Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Tue, 20 Jan 2026 12:50:10 +0000 Subject: [PATCH] chore: raise minimum PHP version to 8.2 for 2.x release Updates all configuration files and documentation to reflect the new PHP 8.2 minimum requirement for the 2.x branch. This allows the plugin to leverage modern PHP features whilst maintaining compatibility with currently supported PHP versions. The CI workflow matrices have been adjusted to test against PHP 8.2, 8.3, and 8.4, removing support for PHP 7.4 and 8.1. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/integration.yml | 2 +- .github/workflows/unit.yml | 3 +-- .wp-env.json | 2 +- CONTRIBUTING.md | 2 +- README.md | 2 +- composer.json | 2 +- msm-sitemap.php | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index da2ce081..9ba8448c 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -37,7 +37,7 @@ jobs: include: # Check lowest supported WP version, with the lowest supported PHP. - wordpress: '6.4' - php: '7.4' + php: '8.2' # Check latest WP with the latest PHP. - wordpress: 'master' php: 'latest' diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 455ddd55..0f374ada 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -35,10 +35,9 @@ jobs: fail-fast: false matrix: php: - - '7.4' - - '8.1' - '8.2' - '8.3' + - '8.4' steps: - name: Checkout code diff --git a/.wp-env.json b/.wp-env.json index 8e3e5455..b0bb18a9 100644 --- a/.wp-env.json +++ b/.wp-env.json @@ -5,7 +5,7 @@ "mappings": { "wp-content/mu-plugins": "./mu-plugins" }, - "phpVersion": "8.1", + "phpVersion": "8.2", "config": { "WP_DEBUG": true, "WP_DEBUG_LOG": true, diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index edf55622..3fd334d9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ Thank you for your interest in contributing to MSM Sitemap! This document provid ## Requirements -* **Minimum Requirements:** WordPress 5.9+, PHP 7.4+ +* **Minimum Requirements:** WordPress 6.4+, PHP 8.2+ * **Coding Standards:** Follows [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards) and [PSR-12](https://www.php-fig.org/psr/psr-12/) ## Development Setup diff --git a/README.md b/README.md index e88213f4..57033eac 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Stable tag: 1.5.5 Requires at least: 6.4 Tested up to: 6.9 -Requires PHP: 7.4 +Requires PHP: 8.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: sitemap, xml, seo, performance, multisite diff --git a/composer.json b/composer.json index f73df286..088bcac3 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "source": "https://github.com/Automattic/msm-sitemap" }, "require": { - "php": ">=7.4", + "php": ">=8.2", "composer/installers": "^1.0 || ^2.0" }, "require-dev": { diff --git a/msm-sitemap.php b/msm-sitemap.php index 80d38c88..daacb569 100644 --- a/msm-sitemap.php +++ b/msm-sitemap.php @@ -13,7 +13,7 @@ * Description: Smart date-based sitemaps with automatic generation, detailed monitoring, and enterprise-ready architecture. * Version: 2.0.0-dev * Requires at least: 6.4 - * Requires PHP: 7.4 + * Requires PHP: 8.2 * Author: Metro.co.uk, MAKE, Alley Interactive, WordPress VIP. * Text Domain: msm-sitemap * License: GPL-2.0-or-later