From a83ad4cdd8492decf6e975494f8130c90fd9fa1d Mon Sep 17 00:00:00 2001 From: Jon Gotlin Date: Fri, 5 Dec 2025 13:29:34 +0100 Subject: [PATCH 1/4] Nullable --- src/ResponseFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ResponseFactory.php b/src/ResponseFactory.php index 986ee16..cf17148 100644 --- a/src/ResponseFactory.php +++ b/src/ResponseFactory.php @@ -23,7 +23,7 @@ final class ResponseFactory private $cursor; private $contentType; - public function __construct(Manager $fractal, string $contentType = null) + public function __construct(Manager $fractal, ?string $contentType = null) { $this->fractal = $fractal; if (null === $contentType) { From 682eba86243464635aa48608c549ce1e7eb55298 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 16 Dec 2025 07:44:12 +0100 Subject: [PATCH 2/4] Allow Symfony 8 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 706819d..54ce7f9 100644 --- a/composer.json +++ b/composer.json @@ -17,8 +17,8 @@ "php": ">=7.4", "ext-json": "*", "league/fractal": "^0.18 || ^0.19 || ^0.20", - "symfony/http-foundation": "^5.4 || ^6.0 || ^7.0", - "symfony/validator": "^5.4 || ^6.0 || ^7.0" + "symfony/http-foundation": "^5.4 || ^6.0 || ^7.0 || ^8.0", + "symfony/validator": "^5.4 || ^6.0 || ^7.0 || ^8.0" }, "require-dev": { "nyholm/nsa": "^1.1", From c89f35545df5d5ad10bbfb17d3479eb153df05fa Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 29 Dec 2025 09:55:06 +0100 Subject: [PATCH 3/4] Php cs fixer bump --- .github/workflows/static.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 66fa7de..531d989 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -57,7 +57,7 @@ jobs: with: php-version: 8.1 coverage: none - tools: php-cs-fixer:3.21, cs2pr + tools: php-cs-fixer:3.92, cs2pr - name: Display PHP-CS-Fixer version run: php-cs-fixer --version From 3a7ce69cae88bd1ac775b72fc80e71f15225d091 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 29 Dec 2025 10:00:26 +0100 Subject: [PATCH 4/4] Same versions as other jobs --- .github/workflows/static.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 531d989..552cd99 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -68,18 +68,18 @@ jobs: composer-normalize: name: Composer Normalize - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.2 + php-version: 8.1 coverage: none tools: composer-normalize - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Normalize run: composer-normalize --dry-run