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

Keep selectable intersection when improving doctrine collection doc type #343

Conversation

bobvandevijver
Copy link
Contributor

This is an attempt to fix #342.

I do have an issue with one of the tests, as the PhpDocTypeChanger incorrect detects the types as changed, causing it to change it every time as the test indicates. Some help to fix this would be appreciated, or....

It might actually be better to not touch the doc type at all when it already contains the <int,, but I do not think I can implement that correctly (or swiftly)

@TomasVotruba
Copy link
Member

Manually adding selectable everywhere seems like a fix in wrong place. This should be fixed in Doctrine itself, or PHPStan extension.

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 rule ImproveDoctrineCollectionDocTypeInEntityRector does not keep Intersection types
2 participants