From eea24894fcafbc16645d9984bb593943c0112a58 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 4 Dec 2023 02:09:43 +0000 Subject: [PATCH 1/3] Add `AllowDynamicProperties` annotation --- src/Packagist/Api/Result/AbstractResult.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Packagist/Api/Result/AbstractResult.php b/src/Packagist/Api/Result/AbstractResult.php index c51c5b9..da78622 100644 --- a/src/Packagist/Api/Result/AbstractResult.php +++ b/src/Packagist/Api/Result/AbstractResult.php @@ -6,6 +6,7 @@ use Doctrine\Inflector\InflectorFactory; +#[\AllowDynamicProperties] abstract class AbstractResult { public function fromArray(array $data): void From cedfb158bb6d627b88ddae1e3882237926769470 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 4 Dec 2023 02:14:46 +0000 Subject: [PATCH 2/3] Update test.yml --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0850fdf..88af176 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,12 +8,12 @@ jobs: strategy: matrix: - php-versions: ['7.4', '8.0'] + php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] name: PHP ${{ matrix.php-versions }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set PHP version uses: shivammathur/setup-php@v2 @@ -28,7 +28,7 @@ jobs: - name: Cache Composer packages id: composer-cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: vendor key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} From 7524d8a4dac09d5b8ea0a28125711622a5f174d2 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 4 Dec 2023 02:16:03 +0000 Subject: [PATCH 3/3] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 88af176..05e0e20 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] + php-versions: ['7.4', '8.0', '8.1', '8.2'] name: PHP ${{ matrix.php-versions }}