From fe928c9f5a8fa9a8e663870f3037be7e8c4a497c Mon Sep 17 00:00:00 2001 From: Vincent QUATREVIEUX Date: Thu, 5 Jan 2023 13:45:27 +0100 Subject: [PATCH] chore: Compatibility with PHP 8.2 --- .github/workflows/php.yml | 2 +- composer.json | 2 +- tests/MongoDB/Driver/ResultSet/CursorResultSetTest.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 2e11a8e..3ae9c80 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: ['7.4', '8.0', '8.1'] + php-versions: ['7.4', '8.0', '8.1', '8.2'] name: PHP ${{ matrix.php-versions }} steps: diff --git a/composer.json b/composer.json index 497f188..09ebf84 100755 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ }, "minimum-stability": "dev", "require": { - "php": "~7.4 | ~8.0.0 | ~8.1.0", + "php": "~7.4 | ~8.0.0 | ~8.1.0 | ~8.2.0", "ext-mongodb": "*", "b2pweb/bdf-serializer": "~1.2", "b2pweb/bdf-prime": "~2.0", diff --git a/tests/MongoDB/Driver/ResultSet/CursorResultSetTest.php b/tests/MongoDB/Driver/ResultSet/CursorResultSetTest.php index d8beb62..243869b 100644 --- a/tests/MongoDB/Driver/ResultSet/CursorResultSetTest.php +++ b/tests/MongoDB/Driver/ResultSet/CursorResultSetTest.php @@ -261,6 +261,7 @@ public function __construct(array $data = []) $this->import($data); } + #[\ReturnTypeWillChange] public function bsonUnserialize(array $data) { $this->_id = $data['_id'];