Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Advertise return annotations from doctrine/lexer #209
In order to help the ecosystem move forward with return types, the next version of Symfony will trigger deprecation notices when a child class doesn't declare the return type of one of its overriding methods.
This happens only for methods overriding third party packages.
The goal is that child classes move to add return types first so that vendors can then seamlessly add them too in their next major version bump.
The related PR is symfony/symfony#30323
Adding these annotations allows opting-out from the notices, meaning "I cannot add the return-type now because that'd be a BC break, but I'm aware that's something I need to fix when bumping to the next major of my package".
A quick merge would be greatly appreciated as that would unlock progress on our side :)