Skip to content

Conversation

AngelinCalu
Copy link
Contributor

The issue was caused by a too-strict PHPDoc that assumed the retrieved user is always a User. However, retrieveByCredentials() can return null.

This aligns the docblock with the actual return type, making the subsequent null/credential checks type-safe.

The issue was caused by a too-strict PHPDoc that assumed the retrieved user is always a User. However, `retrieveByCredentials()` can return null.
This aligns the docblock with the actual return type, making the subsequent null/credential checks type-safe.
@joetannenbaum
Copy link
Contributor

Thanks!

@joetannenbaum joetannenbaum merged commit d2bfb4d into laravel:main Sep 15, 2025
2 of 3 checks passed
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.

2 participants