From 25e1c9f069191d86c02d180c832bb44517bae5be Mon Sep 17 00:00:00 2001
From: tfirdaus <2067467+tfirdaus@users.noreply.github.com>
Date: Sun, 30 Jun 2024 01:15:05 +0000
Subject: [PATCH 1/5] Sync classes
---
app/Parser.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/Parser.php b/app/Parser.php
index 5485b22..8dc8815 100644
--- a/app/Parser.php
+++ b/app/Parser.php
@@ -872,7 +872,7 @@ protected function sanitize_requires_version($version)
// x.y or x.y.z
! preg_match('!^\d+\.\d(\.\d+)?$!', $version) ||
// Allow plugins to mark themselves as requireing Stable+0.1 (trunk/master) but not higher
- ( defined('WP_CORE_STABLE_BRANCH') && ( (float) $version > (float) WP_CORE_STABLE_BRANCH + 0.1 ) )
+ defined('WP_CORE_STABLE_BRANCH') && ( (float) $version > (float) WP_CORE_STABLE_BRANCH + 0.1 )
) {
$this->warnings['requires_header_ignored'] = true;
// Ignore the readme value.
From e0ffb451d2934e33e7ac55f5f021a6a79a15cda1 Mon Sep 17 00:00:00 2001
From: Thoriq Firdaus <2067467+tfirdaus@users.noreply.github.com>
Date: Sun, 21 Jul 2024 13:22:48 +0700
Subject: [PATCH 2/5] Fix PHPCS violations
---
.github/workflows/ci.yml | 2 +-
phpcs.xml.dist | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 549a077..2627e42 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -53,7 +53,7 @@ jobs:
strategy:
fail-fast: true
matrix:
- php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
+ php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
env:
WP_DB_TEST_NAME: wp_test
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 822ce81..5ff9d85 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -42,6 +42,9 @@
+
+
+
From d9e64b494aaab97ac0db3620fb1664863120d7fd Mon Sep 17 00:00:00 2001
From: Thoriq Firdaus <2067467+tfirdaus@users.noreply.github.com>
Date: Sun, 21 Jul 2024 13:28:58 +0700
Subject: [PATCH 3/5] Update PHP & WP version tests
---
.github/workflows/ci.yml | 2 ++
phpcs.xml.dist | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2627e42..42c35bd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -54,6 +54,7 @@ jobs:
fail-fast: true
matrix:
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
+ wp: ['5.*', '6.5']
env:
WP_DB_TEST_NAME: wp_test
@@ -116,6 +117,7 @@ jobs:
run: |
composer remove syntatis/coding-standard rector/rector --dev
composer install --prefer-dist
+ composer require "wp-phpunit/wp-phpunit:${{ matrix.wp }}" "roots/wordpress:${{ matrix.wp }}" --no-interaction --no-update --dev
- name: Run test
env:
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 5ff9d85..1679e92 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -17,8 +17,8 @@
-
-
+
+
From c149449405ed0382f49822a629fe2eacabfcd2e4 Mon Sep 17 00:00:00 2001
From: Thoriq Firdaus <2067467+tfirdaus@users.noreply.github.com>
Date: Sun, 21 Jul 2024 13:33:45 +0700
Subject: [PATCH 4/5] Update composer installation
---
.github/workflows/ci.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 42c35bd..66cac17 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -54,7 +54,7 @@ jobs:
fail-fast: true
matrix:
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
- wp: ['5.*', '6.5']
+ wp: ['5.*', '6.5'] # WordPress 6.6 requires 7.2.
env:
WP_DB_TEST_NAME: wp_test
@@ -116,8 +116,8 @@ jobs:
- name: Install dependencies
run: |
composer remove syntatis/coding-standard rector/rector --dev
- composer install --prefer-dist
composer require "wp-phpunit/wp-phpunit:${{ matrix.wp }}" "roots/wordpress:${{ matrix.wp }}" --no-interaction --no-update --dev
+ composer install --prefer-dist
- name: Run test
env:
From cb3b8fe8d1d3f2a73b72ce3087fc147ff38f2b8e Mon Sep 17 00:00:00 2001
From: Thoriq Firdaus <2067467+tfirdaus@users.noreply.github.com>
Date: Sun, 21 Jul 2024 13:36:02 +0700
Subject: [PATCH 5/5] Update deps installations
---
.github/workflows/ci.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 66cac17..74f437e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -115,8 +115,8 @@ jobs:
- name: Install dependencies
run: |
- composer remove syntatis/coding-standard rector/rector --dev
composer require "wp-phpunit/wp-phpunit:${{ matrix.wp }}" "roots/wordpress:${{ matrix.wp }}" --no-interaction --no-update --dev
+ composer remove syntatis/coding-standard rector/rector --dev
composer install --prefer-dist
- name: Run test