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

Worth mentioning for passwords #991

Open
github-scx opened this issue Aug 18, 2023 · 0 comments
Open

Worth mentioning for passwords #991

github-scx opened this issue Aug 18, 2023 · 0 comments

Comments

@github-scx
Copy link

I think it would be worth mentioning the #[SensitiveParameter] they added. It will make it so that the variable doesn't get thrown in stack dumps, or log files internally to PHP. This is in 8.2, and I think it makes it a little more secure.

public function login(string $email, #[SensitiveParameter] string $password)
{
echo 'login';
}

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

No branches or pull requests

2 participants