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

chore: set proper return types #2976

Conversation

Levdbas
Copy link
Member

@Levdbas Levdbas commented Apr 26, 2024

Related:

-#2807

Issue

The build() methods would declare the return type as the concrete class - static instead of self.

Solution

Set proper return type now support PHP 8.0 and above

Impact

Better code inspection hints./

Usage Changes

no.

Considerations

no.

Testing

no.

@Levdbas Levdbas merged commit 6b72908 into 2.x Apr 26, 2024
23 of 24 checks passed
@Levdbas Levdbas deleted the 2807-bug-2x-build-method-breaks-polymorphism-due-to-incorrect-return-type-declaration branch April 26, 2024 12:36
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.

[BUG] 2.x build() method breaks polymorphism due to incorrect return type declaration
2 participants