Skip to content

fix: Stripped final from class def #903

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

Merged
merged 1 commit into from
Feb 28, 2025
Merged

Conversation

seebeen
Copy link
Contributor

@seebeen seebeen commented Feb 28, 2025

Removed final keyword from class definitions of Inject and Injectable attributes.

Final keyword prevents extending these classes which goes against the open-closed principle.

Fixes #902

Final keyword prevents extending inject and injectable attributes
@mnapoli mnapoli merged commit 8aa09e0 into PHP-DI:master Feb 28, 2025
@seebeen seebeen deleted the fix/strip-final branch February 28, 2025 17:41
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.

Remove final from Inject attribute definition
2 participants