From 81700414e398748132a49e6c641d0e2442920fb2 Mon Sep 17 00:00:00 2001
From: Matthew Baggett <matthew@baggett.me>
Date: Sun, 19 May 2024 04:12:54 +0200
Subject: [PATCH] PHP version detection works if you give it a version to
 detect...

---
 .github/workflows/swarm-connectivity-tester.yml | 4 ++--
 composer.json                                   | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/swarm-connectivity-tester.yml b/.github/workflows/swarm-connectivity-tester.yml
index 2ebbd3f..e663191 100644
--- a/.github/workflows/swarm-connectivity-tester.yml
+++ b/.github/workflows/swarm-connectivity-tester.yml
@@ -51,6 +51,6 @@ jobs:
           cache-from: ${{ env.DOCKER_CACHE_FROM }}
           cache-to: ${{ env.DOCKER_CACHE_TO }}
           build-contexts: |
-            php:cli=docker-image://ghcr.io/benzine-framework/php:cli-8.2
-            php:nginx=docker-image://ghcr.io/benzine-framework/php:nginx-8.2
+            php:cli=docker-image://ghcr.io/benzine-framework/php:cli-${{ env.PHP_VERSION }}
+            php:nginx=docker-image://ghcr.io/benzine-framework/php:nginx-${{ env.PHP_VERSION }}
 
diff --git a/composer.json b/composer.json
index c2c9fc8..6c671c8 100644
--- a/composer.json
+++ b/composer.json
@@ -13,6 +13,7 @@
     }
   ],
   "require": {
+    "php": "^8.2",
     "guzzlehttp/guzzle": "^7.8",
     "vlucas/phpdotenv": "^5.6",
     "kint-php/kint": "^5.1"