Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session_set_cookie_params can take options #2051

Closed
iluuu1994 opened this issue Aug 23, 2019 · 2 comments
Closed

session_set_cookie_params can take options #2051

iluuu1994 opened this issue Aug 23, 2019 · 2 comments

Comments

@iluuu1994
Copy link
Contributor

iluuu1994 commented Aug 23, 2019

session_set_cookie_params([
  'samesite' => 'Strict',
]);

@session_start();

ERROR: InvalidArgument - 3:27 - Argument 1 of session_set_cookie_params expects int, array{samesite: string(Strict)} provided

ERROR: UnusedFunctionCall - 3:1 - The call to session_set_cookie_params is not used

https://psalm.dev/r/27cae239cd

Two issues:

@LeSuisse
Copy link
Contributor

It looks like the issue has been resolved, should this be closed?

@weirdan weirdan closed this as completed Dec 14, 2019
@swiffer
Copy link
Contributor

swiffer commented Dec 25, 2021

it's not solved for the samesite array option atm, is it?

#7215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants