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

Correct return type definition for DataTransformerInterface #645

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

bobvandevijver
Copy link
Contributor

Corrects the problem introduced #624 and fixes rectorphp/rector#8730.

The correct return type is mixed (see https://github.com/symfony/symfony/blob/7.0/src/Symfony/Component/Form/DataTransformerInterface.php), the comment in #537 (comment) where the change was based on was just an example for a particular scenario.

@TomasVotruba TomasVotruba merged commit bff1daf into rectorphp:main Jul 8, 2024
5 checks passed
@TomasVotruba
Copy link
Member

Thanks for prompt fix 🙏

@bobvandevijver bobvandevijver deleted the fix-transformers branch July 8, 2024 19:50
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.

Return types being overwritten incorrectly
2 participants