From 011ca8e298b74f273ce505d9361c6aed2615f9c8 Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Fri, 18 Aug 2023 15:47:29 +1000 Subject: [PATCH 1/3] Update supported PHP version to 7.4 minimum --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e1f47f82..e70d0a2b 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "php": ">=5.6", + "php": ">=7.4", "composer/installers": "~1.0" }, "require-dev": { From 1bea1fec3f58ce09a37e8e85359428f7d303ab9a Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Thu, 16 Nov 2023 08:46:02 +1100 Subject: [PATCH 2/3] Update minimum php version across CI, plugin header, and Github action tests --- .github/workflows/integrations.yml | 2 +- .phpcs.xml.dist | 2 +- msm-sitemap.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integrations.yml b/.github/workflows/integrations.yml index 8f5577e3..0f8c53de 100644 --- a/.github/workflows/integrations.yml +++ b/.github/workflows/integrations.yml @@ -24,7 +24,7 @@ jobs: strategy: matrix: wordpress: ["5.5", "5.6", "5.7"] - php: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4"] + php: ["7.4"] include: - php: "8.0" # Ignore platform requirements, so that PHPUnit 7.5 can be installed on PHP 8.0 (and above). diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist index ef092b74..afaba0f7 100644 --- a/.phpcs.xml.dist +++ b/.phpcs.xml.dist @@ -31,7 +31,7 @@ - + diff --git a/msm-sitemap.php b/msm-sitemap.php index ceeab3d0..9852f86d 100644 --- a/msm-sitemap.php +++ b/msm-sitemap.php @@ -6,6 +6,7 @@ Version: 1.4.1 Stable tag: 1.4.1 License: GPLv2 +Requires PHP: 7.4 */ if ( defined( 'WP_CLI' ) && true === WP_CLI ) { From af025022f0fb5b51e3611408f226b63eaed9af32 Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Thu, 16 Nov 2023 08:49:24 +1100 Subject: [PATCH 3/3] Add php 8 versions to github actions tests --- .github/workflows/integrations.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integrations.yml b/.github/workflows/integrations.yml index 0f8c53de..ff9c8c26 100644 --- a/.github/workflows/integrations.yml +++ b/.github/workflows/integrations.yml @@ -24,7 +24,7 @@ jobs: strategy: matrix: wordpress: ["5.5", "5.6", "5.7"] - php: ["7.4"] + php: ["7.4", "8.0", "8.1"] include: - php: "8.0" # Ignore platform requirements, so that PHPUnit 7.5 can be installed on PHP 8.0 (and above).