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

Specify return type array type #525

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Conversation

santigarcor
Copy link
Contributor

After running larastan with the max level I get the error :passwordRules() return type has no value type specified in iterable type array.. It's because the return type of the passwordRules method contains an array, and we don't specify the type. So by adding the type it solves the issue.

Note: I'm not sure if it should be array<mixed> or array<string>.

Here the link to check the error:
https://phpstan.org/r/8eaf0f10-579e-49f9-96bf-6a1b55769231

@taylorotwell taylorotwell merged commit e3e8e10 into laravel:1.x Mar 15, 2024
9 checks passed
@santigarcor santigarcor deleted the patch-1 branch March 15, 2024 14:04
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.

None yet

2 participants