friends-of-reactphp / mysql

Async MySQL database client for ReactPHP.
MIT License
331 stars 66 forks source link

Mark passwords and URIs as `#[\SensitiveParameter]` (PHP 8.2+) #162

Closed clue closed 1 year ago

clue commented 1 year ago

This changeset marks all passwords and URIs containing passwords as #[\SensitiveParameter] to avoid these parameter from potentially showing up in exception traces in PHP 8.2+. Older PHP versions are not affected by this change and continue to work as is. See also RFC: https://wiki.php.net/rfc/redact_parameters_in_back_traces

Refs #161 and #141