From 074acec623b11c070639927270f59b599dde9422 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Mon, 3 Nov 2025 21:43:52 +0800 Subject: [PATCH 1/2] Tests: Run PHPStan on PHP 8.0+ only --- .github/workflows/coding-standards.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 8d7e67a..be91d81 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -35,7 +35,7 @@ jobs: # Defines the WordPress and PHP Versions matrix to run tests on. strategy: matrix: - wp-versions: [ 'latest' ] #[ '6.1.1', 'latest' ] + wp-versions: [ '6.9-beta2' ] #[ 'latest', '6.9-beta1' ] php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] #[ '7.3', '7.4', '8.0', '8.1' ] # Steps to install, configure and run tests @@ -125,4 +125,5 @@ jobs: # Run PHPStan for static analysis. - name: Run PHPStan Static Analysis working-directory: ${{ env.PLUGIN_DIR }} - run: php vendor/bin/phpstan analyse --memory-limit=1250M \ No newline at end of file + if: ${{ contains('8.0 8.1 8.2 8.3 8.4', matrix.php-versions) }} + run: php vendor/bin/phpstan analyse --memory-limit=1024M \ No newline at end of file From 9ee4c74eb134d6ceb9ceef2f3e540c353923f6e3 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Tue, 4 Nov 2025 12:00:04 +0800 Subject: [PATCH 2/2] Coding Standards: Run against latest WordPress version --- .github/workflows/coding-standards.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index be91d81..2aab79c 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -35,7 +35,7 @@ jobs: # Defines the WordPress and PHP Versions matrix to run tests on. strategy: matrix: - wp-versions: [ '6.9-beta2' ] #[ 'latest', '6.9-beta1' ] + wp-versions: [ 'latest' ] #[ 'latest', '6.9-beta1' ] php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] #[ '7.3', '7.4', '8.0', '8.1' ] # Steps to install, configure and run tests