diff --git a/composer.json b/composer.json index ebb41c9..4684dbe 100755 --- a/composer.json +++ b/composer.json @@ -13,13 +13,13 @@ "check": "./vendor/bin/phpstan analyse --level 6 src tests --memory-limit 512M" }, "require": { - "php": ">=8.0", - "ext-swoole": "*", + "php": ">=8.1", + "ext-swoole": "6.*", "utopia-php/framework": "0.33.37" }, "require-dev": { "phpunit/phpunit": "^9.3", - "swoole/ide-helper": "5.0.2", + "swoole/ide-helper": "6.0.2", "laravel/pint": "1.2.*", "phpstan/phpstan": "^1.10" }, diff --git a/composer.lock b/composer.lock index 89968fc..06d8292 100644 --- a/composer.lock +++ b/composer.lock @@ -2270,7 +2270,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.x" + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" }, "funding": [ { @@ -3967,16 +3967,16 @@ }, { "name": "swoole/ide-helper", - "version": "5.0.2", + "version": "6.0.2", "source": { "type": "git", "url": "https://github.com/swoole/ide-helper.git", - "reference": "16cfee44a6ec92254228c39bcab2fb8ae74cc2ea" + "reference": "6f12243dce071714c5febe059578d909698f9a52" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/swoole/ide-helper/zipball/16cfee44a6ec92254228c39bcab2fb8ae74cc2ea", - "reference": "16cfee44a6ec92254228c39bcab2fb8ae74cc2ea", + "url": "https://api.github.com/repos/swoole/ide-helper/zipball/6f12243dce071714c5febe059578d909698f9a52", + "reference": "6f12243dce071714c5febe059578d909698f9a52", "shasum": "" }, "type": "library", @@ -3993,9 +3993,9 @@ "description": "IDE help files for Swoole.", "support": { "issues": "https://github.com/swoole/ide-helper/issues", - "source": "https://github.com/swoole/ide-helper/tree/5.0.2" + "source": "https://github.com/swoole/ide-helper/tree/6.0.2" }, - "time": "2023-03-20T06:05:55+00:00" + "time": "2025-03-23T07:31:41+00:00" }, { "name": "theseer/tokenizer", @@ -4055,7 +4055,7 @@ "prefer-lowest": false, "platform": { "php": ">=8.0", - "ext-swoole": "*" + "ext-swoole": "6.*" }, "platform-dev": {}, "plugin-api-version": "2.9.0" diff --git a/src/Swoole/Response.php b/src/Swoole/Response.php index 1dd2314..68e6bfe 100644 --- a/src/Swoole/Response.php +++ b/src/Swoole/Response.php @@ -245,7 +245,7 @@ protected function sendHeader(string $key, mixed $values): void protected function sendCookie(string $name, string $value, array $options): void { $this->swoole->cookie( - name: $name, + $name, value: $value, expires: $options['expire'] ?? 0, path: $options['path'] ?? '',