From aac10ff28b9b47a6c40d2e13dc679fc4a2c20b17 Mon Sep 17 00:00:00 2001 From: Luca Patera Date: Thu, 6 Feb 2025 01:01:01 +0100 Subject: [PATCH 1/3] fix: force object on generic --- src/Hydrator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Hydrator.php b/src/Hydrator.php index bc6d020..91687b9 100644 --- a/src/Hydrator.php +++ b/src/Hydrator.php @@ -74,7 +74,7 @@ public function __construct(?ContainerInterface $container = null) * * @return T * - * @template T + * @template T of object */ public function hydrate(string|object $object, array|object $data): object { @@ -174,7 +174,7 @@ public function hydrate(string|object $object, array|object $data): object * * @return T * - * @template T + * @template T of object */ public function hydrateWithJson(string|object $object, string $json, ?int $flags = null): object { From 93d7f805207583b8ed43a4362840577cbe844d94 Mon Sep 17 00:00:00 2001 From: Luca Patera Date: Thu, 6 Feb 2025 18:38:19 +0100 Subject: [PATCH 2/3] chore: update github workflow --- .github/workflows/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index b33b8ad..cf6a437 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -15,7 +15,7 @@ jobs: php-versions: [ "8.1", "8.2", "8.3" ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install dependencies run: composer install --no-progress From 7e6972485c4ab727ca3212667269c3b7be59390e Mon Sep 17 00:00:00 2001 From: Luca Patera Date: Thu, 6 Feb 2025 18:45:04 +0100 Subject: [PATCH 3/3] chore: fix github workflow --- .github/workflows/php.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index cf6a437..dd15676 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -7,18 +7,29 @@ on: branches: [ master ] jobs: - build: + tests: + name: Test Suite - PHP ${{ matrix.php }} runs-on: ubuntu-latest strategy: + fail-fast: false matrix: operating-system: [ ubuntu-latest ] - php-versions: [ "8.1", "8.2", "8.3" ] + php: [ 8.1, 8.2, 8.3, 8.4 ] steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + + - name: Validate composer.json and composer.lock + run: composer validate - name: Install dependencies - run: composer install --no-progress + run: composer install --no-progress --no-suggest - name: Run test suite run: vendor/bin/phpunit --no-coverage