Skip to content

[Swoole] Map cookie header correctly when returning response. #469

[Swoole] Map cookie header correctly when returning response.

[Swoole] Map cookie header correctly when returning response. #469

Triggered via pull request December 25, 2025 18:54
@forfinforfin
synchronize #188
forfin:main
Status Failure
Total duration 26s
Artifacts

static.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 1 warning
PHP-CS-Fixer
Process completed with exit code 1.
Psalm
Process completed with exit code 2.
InvalidScalarArgument: src/swoole/src/SymfonyHttpBridge.php#L59
src/swoole/src/SymfonyHttpBridge.php:59:27: InvalidScalarArgument: Argument 1 of Swoole\Http\Response::status expects string, but int provided (see https://psalm.dev/012)
InvalidScalarArgument: src/swoole/src/SymfonyHttpBridge.php#L54
src/swoole/src/SymfonyHttpBridge.php:54:17: InvalidScalarArgument: Argument 7 of Swoole\Http\Response::cookie expects string, but bool provided (see https://psalm.dev/012)
InvalidScalarArgument: src/swoole/src/SymfonyHttpBridge.php#L53
src/swoole/src/SymfonyHttpBridge.php:53:17: InvalidScalarArgument: Argument 6 of Swoole\Http\Response::cookie expects string, but bool provided (see https://psalm.dev/012)
InvalidScalarArgument: src/swoole/src/SymfonyHttpBridge.php#L50
src/swoole/src/SymfonyHttpBridge.php:50:17: InvalidScalarArgument: Argument 3 of Swoole\Http\Response::cookie expects string, but int provided (see https://psalm.dev/012)
TooManyArguments: src/swoole/src/SymfonyHttpBridge.php#L47
src/swoole/src/SymfonyHttpBridge.php:47:24: TooManyArguments: Too many arguments for Swoole\Http\Response::cookie - expecting 7 but saw 8 (see https://psalm.dev/026)
InvalidScalarArgument: src/swoole-nyholm/src/RequestHandlerRunner.php#L70
src/swoole-nyholm/src/RequestHandlerRunner.php:70:21: InvalidScalarArgument: Argument 7 of Swoole\Http\Response::cookie expects string, but bool provided (see https://psalm.dev/012)
InvalidScalarArgument: src/swoole-nyholm/src/RequestHandlerRunner.php#L69
src/swoole-nyholm/src/RequestHandlerRunner.php:69:21: InvalidScalarArgument: Argument 6 of Swoole\Http\Response::cookie expects string, but bool provided (see https://psalm.dev/012)
InvalidScalarArgument: src/swoole-nyholm/src/RequestHandlerRunner.php#L66
src/swoole-nyholm/src/RequestHandlerRunner.php:66:21: InvalidScalarArgument: Argument 3 of Swoole\Http\Response::cookie expects string, but int provided (see https://psalm.dev/012)
TooManyArguments: src/swoole-nyholm/src/RequestHandlerRunner.php#L63
src/swoole-nyholm/src/RequestHandlerRunner.php:63:28: TooManyArguments: Too many arguments for Swoole\Http\Response::cookie - expecting 7 but saw 8 (see https://psalm.dev/026)
PHP-CS-Fixer: src/swoole-nyholm/src/RequestHandlerRunner.php#L1
Found violation(s) of type: no_extra_blank_lines