From ab2ddd0de3991778a0538c769117e83b4aede4b5 Mon Sep 17 00:00:00 2001 From: Henrique Moody Date: Fri, 6 Dec 2024 15:23:02 +0100 Subject: [PATCH] Add support to PHP 8.4 --- .github/workflows/continuous-integration.yml | 3 ++- composer.json | 2 +- tests/integration/rules/dateTimeDiff.phpt | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 2969c59c6..7649e16e0 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -22,6 +22,7 @@ jobs: - "8.1" - "8.2" - "8.3" + - "8.4" steps: - name: Checkout @@ -96,7 +97,7 @@ jobs: - name: Install PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.3 + php-version: 8.4 coverage: none - name: Install dependencies diff --git a/composer.json b/composer.json index cf7318eee..8045799c5 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ } }, "require": { - "php": "^8.1 || ^8.2", + "php": ">=8.1", "respect/stringifier": "^2.0.0", "symfony/polyfill-mbstring": "^1.28" }, diff --git a/tests/integration/rules/dateTimeDiff.phpt b/tests/integration/rules/dateTimeDiff.phpt index eea2a60f1..2e41f7a92 100644 --- a/tests/integration/rules/dateTimeDiff.phpt +++ b/tests/integration/rules/dateTimeDiff.phpt @@ -101,10 +101,10 @@ The number of years between %d/%d/%d and 09/12/1988 must be less than 8 With input in incorrect $format ⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺ -For comparison with %d-%d-%d, "1 year ago" must be a valid datetime in the format 2024-12-09 -- For comparison with %d-%d-%d, "1 year ago" must be a valid datetime in the format 2024-12-09 +For comparison with %d-%d-%d, "1 year ago" must be a valid datetime in the format %d-%d-%d +- For comparison with %d-%d-%d, "1 year ago" must be a valid datetime in the format %d-%d-%d [ - 'dateTimeDiffEquals' => 'For comparison with %d-%d-%d, "1 year ago" must be a valid datetime in the format 2024-12-09', + 'dateTimeDiffEquals' => 'For comparison with %d-%d-%d, "1 year ago" must be a valid datetime in the format %d-%d-%d', ] With custom $now