diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e640b2..982bcc8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ jobs: strategy: matrix: php: + - 8.5 - 8.4 - 8.3 - 8.2 @@ -26,7 +27,7 @@ jobs: - 5.4 - 5.3 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} @@ -39,7 +40,7 @@ jobs: runs-on: ubuntu-24.04 continue-on-error: true steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM - name: Run hhvm composer.phar install uses: docker://hhvm/hhvm:3.30-lts-latest diff --git a/composer.json b/composer.json index f196884..dec880b 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "require": { "php": ">=5.3", "react/datagram": "^1.10", - "react/event-loop": "^1.2" + "react/event-loop": "^1.6" }, "require-dev": { "clue/hexdump": "0.2.*", diff --git a/tests/FunctionalTest.php b/tests/FunctionalTest.php index 05ef5e6..9d92850 100644 --- a/tests/FunctionalTest.php +++ b/tests/FunctionalTest.php @@ -63,7 +63,9 @@ public function testConstructWithoutLoopAssignsLoopAutomatically() $factory = new Factory(); $ref = new \ReflectionProperty($factory, 'loop'); - $ref->setAccessible(true); + if (PHP_VERSION_ID < 80100) { + $ref->setAccessible(true); + } $loop = $ref->getValue($factory); $this->assertInstanceOf('React\EventLoop\LoopInterface', $loop);