Skip to content

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

[Swoole] Map cookie header correctly when returning response.

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

Triggered via pull request December 25, 2025 17:53
Status Failure
Total duration 30s
Artifacts

static.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors
PHPStan
Process completed with exit code 1.
PHPStan: src/swoole-nyholm/src/RequestHandlerRunner.php#L59
Access to an undefined property Psr\Http\Message\ResponseInterface::$headers.
PHPStan: src/swoole-nyholm/src/RequestHandlerRunner.php#L53
Call to an undefined method Psr\Http\Message\ResponseInterface::allPreserveCaseWithoutCookies().
Psalm
Process completed with exit code 2.
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)
TooManyArguments: src/swoole-nyholm/src/RequestHandlerRunner.php#L60
src/swoole-nyholm/src/RequestHandlerRunner.php:60:24: TooManyArguments: Too many arguments for Swoole\Http\Response::cookie - expecting 7 but saw 8 (see https://psalm.dev/026)
NoInterfaceProperties: src/swoole-nyholm/src/RequestHandlerRunner.php#L59
src/swoole-nyholm/src/RequestHandlerRunner.php:59:18: NoInterfaceProperties: Interfaces cannot have properties (see https://psalm.dev/028)
UndefinedInterfaceMethod: src/swoole-nyholm/src/RequestHandlerRunner.php#L53
src/swoole-nyholm/src/RequestHandlerRunner.php:53:32: UndefinedInterfaceMethod: Method Psr\Http\Message\ResponseInterface::allPreserveCaseWithoutCookies does not exist (see https://psalm.dev/181)