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

CS/QA: make all classes final #319

Merged
merged 1 commit into from
Nov 3, 2023
Merged

CS/QA: make all classes final #319

merged 1 commit into from
Nov 3, 2023

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Nov 3, 2023

The PHPCS native autoloader which YoastCS uses, doesn't always play nice with sniffs extending other sniffs, which can lead to fatal "Class already declared" errors.

With this in mind, all YoastCS classes will now be made final.

This will now also be enforced via a sniff available from PHPCSExtra.

Note: this is a breaking change!

The PHPCS native autoloader which YoastCS uses, doesn't always play nice with sniffs extending other sniffs, which can lead to fatal "Class already declared" errors.

With this in mind, all YoastCS classes will now be made `final`.

This will now also be enforced via a sniff available from PHPCSExtra.

Note: this is a breaking change!
@coveralls
Copy link

Coverage Status

coverage: 97.644%. remained the same
when pulling fd7d1e8 on JRF/yoastcs-final-classes
into 6754fc3 on develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants