diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index b33b8ad..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@v2 + - 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 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 {