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

feat: add typehints for factories #538

Merged
merged 2 commits into from Mar 2, 2022

Conversation

Chris53897
Copy link
Contributor

Needs review and testing. See #536
Could be BC Break if User extend these factories.
The interface is not changed.

Can someone explain the background why in the Interface the ReturnTypes are not set, and $modelClass is not TypeHinted with string in the past?

Copy link
Member

@pierredup pierredup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I don't consider this as a BC break, since everything in the DependencyInjection namespace is not part of the public api and is for internal usage only. So anyone extending these classes, do so at their own risk.

(Once #536 is merged, this branch can be rebased to get the builds green)

@Chris53897 Chris53897 changed the title feat: add typehints for factories (BC Break?) feat: add typehints for factories Feb 28, 2022
@Chris53897
Copy link
Contributor Author

Thanks for the explanation. Since there are no conflicts with master i did an empty commit to trigger GitHub actions again.
Tests are green now.

@pierredup
Copy link
Member

Thank you @Chris53897

@pierredup pierredup merged commit 8cd9755 into Payum:master Mar 2, 2022
@Chris53897 Chris53897 deleted the feature/typehints-for-factories branch March 5, 2022 08:56
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.

None yet

3 participants