-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Messenger] Fix PHPDoc template for TransportFactoryInterface
#51374
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you make the TransportFactoryInterface
generic, you need to update the PHPDoc on every implementation accordingly.
src/Symfony/Component/Messenger/Transport/TransportFactoryInterface.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/AmazonSqsTransport.php
Outdated
Show resolved
Hide resolved
d1304cc
to
c738259
Compare
c738259
to
655d4fd
Compare
Did as requested :) |
TransportFactoryInterface
TransportFactoryInterface
TransportFactoryInterface
@derrabus WDYT? |
TransportFactoryInterface
TransportFactoryInterface
a969261
to
da34d05
Compare
Thank you @Ferror. |
wasnt updating the returntypes on |
Unfortunately not. SchedulerTransportFactory shares Transport Interface therefore by pipeline config it was also required to change to add that. |
i mean why prefer templating a factory when the return type is already sufficient?
or what does this PR solve? 🤔 |
If we never benefit from the generic types in places in which we inject a TransportFactory but only in places using a concrete factory explicitly, we could indeed avoid making it generic but using a refined return type... |
Improved a little bit phpdocs when dealing with Transport & Transport Factory Interface.