From 8919645fb04f8ee515c7a7a9db6cd81519b5fc94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Sun, 25 Oct 2026 02:41:56 +0100 Subject: [PATCH] Run tests on PHP 8.5 and update test environment --- .github/workflows/ci.yml | 5 +++-- composer.json | 6 +++--- tests/FactoryTest.php | 4 +++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18bf628..bd7ad2e 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 }} @@ -43,7 +44,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 2b67628..4e61088 100644 --- a/composer.json +++ b/composer.json @@ -29,9 +29,9 @@ "require": { "php": ">=5.3", "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "react/dns": "^1.13", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.1 || ^1.2" + "react/dns": "^1.14", + "react/event-loop": "^1.6", + "react/promise": "^3.3 || ^2.1 || ^1.2" }, "require-dev": { "phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36", diff --git a/tests/FactoryTest.php b/tests/FactoryTest.php index e8df249..6473fcd 100644 --- a/tests/FactoryTest.php +++ b/tests/FactoryTest.php @@ -27,7 +27,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);