walkor / workerman

An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.
http://www.workerman.net
MIT License
11.03k stars 2.25k forks source link

Param sameSite in the $response->cookie() should be a string #1010

Closed Qclanton closed 4 months ago

Qclanton commented 4 months ago

According to documentation, param "SameSite" for cookie can take values "None", "Strict", or "Lax" (documentation) but \Workerman\Protocols\Http\Response::cookie() expects boolean value for this param

walkor commented 4 months ago

Fixed