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

[11.x] Change typehint for enum rule from string to class-string #50603

Merged
merged 1 commit into from
Mar 18, 2024
Merged

[11.x] Change typehint for enum rule from string to class-string #50603

merged 1 commit into from
Mar 18, 2024

Conversation

liamduckett
Copy link
Contributor

This will allow static analysis tools to correctly determine non class string uses of the Enum rule.

Example using PHPStan: https://phpstan.org/r/ece3460a-e80b-4fcc-a289-40b6e0442906

@driesvints driesvints changed the title change typehint for enum rule from string to class-string [11.x] Change typehint for enum rule from string to class-string Mar 18, 2024
@taylorotwell taylorotwell merged commit 50124be into laravel:11.x Mar 18, 2024
30 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