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

Upgrade mediawiki-codesniffer to latest version (45.0.0) #101

Conversation

codders
Copy link
Contributor

@codders codders commented Dec 6, 2024

This repository is currently using version 34 of the Mediawiki coding style phpcs rules. If the code aims to comply with Mediawiki style guidelines, it makes sense that it continues to comply at current versions of the rules.

Besides being simply different, the newer versions of the rules introduce, for example,
MediaWiki.Usage.NullableType.ExplicitNullableTypes, which enforces compliance with coming deprecation rules in PHP 8.4 concerning nullable types. If the code does not remove the soon-to-be-deprecated form of nullable type declarations, the library will no longer be usable in Mediawiki for PHP 8.4 deployments.

Resolves #100

Bug: T379481

@codders codders force-pushed the feat/upgrade-mediawiki-codesniffer-20241206 branch 3 times, most recently from a7284df to 314e20b Compare December 6, 2024 13:51
@JeroenDeDauw
Copy link
Member

Same comments as DataValues/Interfaces#63

@codders codders force-pushed the feat/upgrade-mediawiki-codesniffer-20241206 branch from 314e20b to d7dca42 Compare December 6, 2024 15:03
@codders
Copy link
Contributor Author

codders commented Dec 6, 2024

Thank you - made the same changes here.

This repository is currently using version 34 of the Mediawiki coding
style phpcs rules. If the code aims to comply with Mediawiki style
guidelines, it makes sense that it continues to comply at current
versions of the rules.

Besides being simply different, the newer versions of the rules
introduce, for example,
MediaWiki.Usage.NullableType.ExplicitNullableTypes, which enforces
compliance with coming deprecation rules in PHP 8.4 concerning nullable
types. If the code does not remove the soon-to-be-deprecated form of
nullable type declarations, the library will no longer be usable in
Mediawiki for PHP 8.4 deployments.

Resolves DataValues#100

Bug: T379481
@codders codders force-pushed the feat/upgrade-mediawiki-codesniffer-20241206 branch from d7dca42 to 06415a0 Compare December 6, 2024 15:13
@JeroenDeDauw JeroenDeDauw merged commit b1fd0ac into DataValues:master Dec 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support [email protected], PHP 8.4 readiness
2 participants