From 0fd59e670af506e2778a2d00219090b9a636f5bb Mon Sep 17 00:00:00 2001 From: Rob Allen Date: Sun, 24 Nov 2024 16:16:02 +0000 Subject: [PATCH] Support PHP 8.4 Add to CI unit tests and fix deprecation warning. Thanks to acelaya for this. --- .github/workflows/unit-tests.yml | 2 +- src/IpAddress.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5074ba1..250f84f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -12,7 +12,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3] + php: [8.0, 8.1, 8.2, 8.3, 8.4] steps: - name: Checkout diff --git a/src/IpAddress.php b/src/IpAddress.php index 777bf50..4216a08 100644 --- a/src/IpAddress.php +++ b/src/IpAddress.php @@ -73,7 +73,7 @@ class IpAddress implements MiddlewareInterface */ public function __construct( $checkProxyHeaders = false, - array $trustedProxies = null, + ?array $trustedProxies = null, $attributeName = null, array $headersToInspect = [] ) {