From 72115e63ea430436955415f6d964c56868534d47 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Tue, 4 Nov 2025 12:58:00 +0800 Subject: [PATCH] Tests: Coding Standards: Use `contains` for PHP version check --- .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 2aab79c..1807bb9 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -114,7 +114,7 @@ jobs: # Run Coding Standards on Tests. - name: Run Coding Standards on Tests working-directory: ${{ env.PLUGIN_DIR }} - if: ${{ matrix.php-versions == '8.1' || matrix.php-versions == '8.2' || matrix.php-versions == '8.3' || matrix.php-versions == '8.4' }} + if: ${{ contains('8.1 8.2 8.3 8.4', matrix.php-versions) }} run: php vendor/bin/phpcs -q --standard=phpcs.tests.xml --report=checkstyle ./tests | cs2pr # Run WordPress Coding Standards on Plugin.