rectorphp / rector-symfony

Rector upgrade rules for Symfony
http://getrector.com
MIT License
179 stars 86 forks source link

Correct return type definition for DataTransformerInterface #645

Closed bobvandevijver closed 2 months ago

bobvandevijver commented 2 months ago

Corrects the problem introduced #624 and fixes https://github.com/rectorphp/rector/issues/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 https://github.com/rectorphp/rector-symfony/issues/537#issue-1957058803 where the change was based on was just an example for a particular scenario.

TomasVotruba commented 2 months ago

Thanks for prompt fix 🙏