Skip to content

Conversation

@Khuthaily
Copy link
Contributor

This PR updates the Illuminate\Hashing\AbstractHasher::check() method to prevent PHP 8.2+ from throwing a deprecation warning when null or non-string values are passed to password_verify().

In PHP 8.2 and later, passing null to functions that expect string parameters (like password_verify()) is deprecated. Under some authentication edge cases, $value or $hashedValue can be null before validation, which triggers this warning.

…d to password_verify()

This PR updates the `Illuminate\Hashing\AbstractHasher::check()` method to prevent PHP 8.2+ from throwing a deprecation warning when null or non-string values are passed to `password_verify()`.

In PHP 8.2 and later, passing `null` to functions that expect `string` parameters (like `password_verify()`) is deprecated. Under some authentication edge cases, `$value` or `$hashedValue` can be `null` before validation, which triggers this warning.
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

Successfully merging this pull request may close these issues.

1 participant