From 9563c12304e16128c9becc66d1f7dd188c3cb0b2 Mon Sep 17 00:00:00 2001 From: Sarah Mount Date: Fri, 1 May 2026 16:00:24 +0100 Subject: [PATCH 1/4] Use Ubuntu latest for CI To save us constantly changing this. --- .github/workflows/continuous-integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index bc939bc..34625ba 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -4,7 +4,7 @@ on: jobs: lint-and-test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: php-versions: ['7.4', '8.1', '8.2'] From c0fae14c40327574ee5f687ffa9477ba747134c5 Mon Sep 17 00:00:00 2001 From: Sarah Mount Date: Fri, 1 May 2026 16:00:34 +0100 Subject: [PATCH 2/4] Bump versions of basic actions --- .github/workflows/continuous-integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 34625ba..d236c1f 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -9,7 +9,7 @@ jobs: matrix: php-versions: ['7.4', '8.1', '8.2'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -17,7 +17,7 @@ jobs: - name: Get Composer Cache Directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v2 + - uses: actions/cache@v5 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} From f3031b1fc84d22c961e4f0d8cddb1ca98fdbb9b2 Mon Sep 17 00:00:00 2001 From: Sarah Mount Date: Fri, 1 May 2026 16:11:21 +0100 Subject: [PATCH 3/4] Suppress Psalm error Since we expect this to never fire. See: https://github.com/vimeo/psalm/issues/11144 --- src/Dates.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Dates.php b/src/Dates.php index 714e208..c6a0cbb 100644 --- a/src/Dates.php +++ b/src/Dates.php @@ -55,8 +55,12 @@ public static function strftime($datetime, string $format, $else, string $tz) } $t = $result->unwrap(); } - $old_tz = date_default_timezone_get(); + + /** @psalm-suppress ArgumentTypeCoercion + * + * See: https://github.com/vimeo/psalm/issues/11144 + */ date_default_timezone_set($tz); $ret = date($format, $t); From 3cadf7769bb5a522ef322d2264f0e7ef41f26e9a Mon Sep 17 00:00:00 2001 From: Sarah Mount Date: Fri, 1 May 2026 16:13:02 +0100 Subject: [PATCH 4/4] Set Psalm defaults --- psalm.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/psalm.xml b/psalm.xml index 5d801af..4a4c705 100644 --- a/psalm.xml +++ b/psalm.xml @@ -1,6 +1,8 @@