From 963bc6e7a5fe59b411e8daa371e235f3d0483ac3 Mon Sep 17 00:00:00 2001
From: Alex Karajos <alex.merlin.1985@gmail.com>
Date: Mon, 2 Dec 2024 11:18:47 +0200
Subject: [PATCH] Issue #520: Restricted `Qodana` to supported PHP versions

Signed-off-by: Alex Karajos <alex.merlin.1985@gmail.com>
---
 .github/workflows/qodana_code_quality.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/qodana_code_quality.yml b/.github/workflows/qodana_code_quality.yml
index 4bbb0dd..833566c 100644
--- a/.github/workflows/qodana_code_quality.yml
+++ b/.github/workflows/qodana_code_quality.yml
@@ -14,6 +14,9 @@ jobs:
       contents: write
       pull-requests: write
       checks: write
+    strategy:
+      matrix:
+        php-versions: [ '8.2', '8.3' ]
     steps:
       - uses: actions/checkout@v4
         with:
@@ -22,7 +25,7 @@ jobs:
       - name: Install PHP
         uses: shivammathur/setup-php@v2
         with:
-          php-version: "${{ matrix.php }}"
+          php-version: ${{ matrix.php-versions }}
           coverage: pcov
           ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
           tools: composer:v2, cs2pr