diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ca5560f..f4b6182 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: ['8.3', '8.4', 'nightly'] + php-versions: ['8.4', '8.5'] steps: - name: Checkout repository diff --git a/composer.json b/composer.json index ca38377..1782b2d 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } }, "require": { - "php": ">=8.3", + "php": ">=8.4", "ext-json": "*", "ext-redis": "*", "utopia-php/cli": "0.23.*", diff --git a/composer.lock b/composer.lock index 95bc21e..43353e2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "644a2990ef72f54e13a18a7b7d43eda9", + "content-hash": "2fde5aa6b941c2a140043d64c4026fcf", "packages": [ { "name": "brick/math", @@ -2025,16 +2025,16 @@ }, { "name": "utopia-php/http", - "version": "2.0.0-rc4", + "version": "2.0.0-rc5", "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "0396a959c6a3be7c16b4b72283347327a75d1f92" + "reference": "ec968c1fd7a4281d8febb3ed771207be0b852b14" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/0396a959c6a3be7c16b4b72283347327a75d1f92", - "reference": "0396a959c6a3be7c16b4b72283347327a75d1f92", + "url": "https://api.github.com/repos/utopia-php/http/zipball/ec968c1fd7a4281d8febb3ed771207be0b852b14", + "reference": "ec968c1fd7a4281d8febb3ed771207be0b852b14", "shasum": "" }, "require": { @@ -2075,9 +2075,9 @@ ], "support": { "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/2.0.0-rc4" + "source": "https://github.com/utopia-php/http/tree/2.0.0-rc5" }, - "time": "2026-06-02T04:17:22+00:00" + "time": "2026-06-04T13:35:09+00:00" }, { "name": "utopia-php/lock", @@ -4276,7 +4276,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=8.3", + "php": ">=8.4", "ext-json": "*", "ext-redis": "*" }, diff --git a/tests/e2e/HTTPServicesTest.php b/tests/e2e/HTTPServicesTest.php index 832b82b..7e13445 100644 --- a/tests/e2e/HTTPServicesTest.php +++ b/tests/e2e/HTTPServicesTest.php @@ -73,7 +73,7 @@ public function testRedirectAction() $this->http->run($request, $response); - $this->assertEquals('/', $response->getHeaders()['Location']); + $this->assertEquals('/', $response->getHeaderLine('location')); } public function testHook() @@ -90,7 +90,7 @@ public function testHook() \ob_end_clean(); $this->assertEquals('Hello World!', $result); - $this->assertEquals('init-called', $response->getHeaders()['x-init']); + $this->assertEquals('init-called', $response->getHeaderLine('x-init')); $_SERVER['REQUEST_METHOD'] = 'GET'; $_SERVER['REQUEST_URI'] = '/chunked'; @@ -104,7 +104,7 @@ public function testHook() \ob_end_clean(); $this->assertEquals('Hello World!', $result); - $this->assertEquals('', ($response1->getHeaders()['x-init'] ?? '')); + $this->assertEquals('', $response1->getHeaderLine('x-init')); } public function testAliasedAction()