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

Fix support for enumType on array fields #605

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

stof
Copy link
Contributor

@stof stof commented Aug 23, 2024

Closes #478

@ondrejmirtes ondrejmirtes merged commit 4d17bed into phpstan:1.5.x Aug 23, 2024
36 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@stof stof deleted the fix_enum_array branch August 23, 2024 11:07
@ondrejmirtes
Copy link
Member

Could you also look into this? #320

And also #509 + #353

Thanks.

@@ -2028,7 +2041,7 @@ private function resolveDoctrineType(string $typeName, ?string $enumType = null,
$type = TypeCombinator::addNull($type);
}

return $type;
return $type;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some cs check is missing :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was actually introduced by phpcbf

@stof
Copy link
Contributor Author

stof commented Aug 23, 2024

@ondrejmirtes I commented on those 3 issues (and 2 of them are not actually related to the support of enums)

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.

The type integration does not properly support enumType on an array-based type
3 participants