Skip to content
Permalink
Browse files

Change signature on setcookie / setrawcookie (#1924)

Version 	Description
7.3.0 	An alternative signature supporting an options array has been added. This signature supports also setting of the SameSite cookie attribute.
  • Loading branch information...
tvdijen authored and muglug committed Jul 9, 2019
1 parent 884a030 commit d424cb3ccd2f99ecb96eded4d70e2bd8cc222fad
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Psalm/Internal/CallMap_73_delta.php
@@ -43,11 +43,15 @@
'hrtime\'1' => ['int|float|false', 'get_as_number='=>'true'],
'is_countable' => ['bool', 'var'=>'mixed'],
'session_set_cookie_params\'1' => ['bool', 'options'=>'array{lifetime?:int,path?:string,domain?:?string,secure?:bool,httponly?:bool}'],
'setcookie' => ['bool', 'name'=>'string', 'value='=>'string', 'options='=>'array'],
'setrawcookie' => ['bool', 'name'=>'string', 'value='=>'string', 'options='=>'array'],
'socket_wsaprotocol_info_export' => ['string|false', 'sock='=>'resource','pid'=>'int'],
'socket_wsaprotocol_info_import' => ['resource|false', 'id'=>'string'],
'socket_wsaprotocol_info_release' => ['bool', 'id'=>'string'],
'SplPriorityQueue::isCorrupted' => ['bool'],
],
'old' => [
'setcookie' => ['bool', 'name'=>'string', 'value='=>'string', 'expires='=>'int', 'path='=>'string', 'domain='=>'string', 'secure='=>'bool', 'httponly='=>'bool'],
'setrawcookie' => ['bool', 'name'=>'string', 'value='=>'string', 'expires='=>'int', 'path='=>'string', 'domain='=>'string', 'secure='=>'bool', 'httponly='=>'bool'],
]
];

0 comments on commit d424cb3

Please sign in to comment.
You can’t perform that action at this time.