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) #168

Merged
merged 1 commit into from
Dec 11, 2024

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. It should be upgraded to the latest version.

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.

Bug: T379481

Copy link
Member

@lucaswerkmeister lucaswerkmeister left a comment

Choose a reason for hiding this comment

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

LGTM, though I don’t know if we want to merge this now or wait for the CI story to clear up.

@codders codders force-pushed the feat/upgrade-mediawiki-codesniffer-20241206 branch from 6f464b9 to 8552423 Compare December 9, 2024 10:55
Copy link
Member

@manicki manicki left a comment

Choose a reason for hiding this comment

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

looks great.
CI story is hopefully resolved through #169
Can have a look at the test run for this PR dumbly merged on the CI PR: https://github.com/wmde/Time/actions/runs/12265937550/job/34223058506 (tests pass, no PHP 8.4 warnings)

This repository is currently using version 34 of the Mediawiki
coding style phpcs rules. It should be upgraded to the latest version.

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.

Bug: T379481
@codders codders force-pushed the feat/upgrade-mediawiki-codesniffer-20241206 branch from 8552423 to 7af710b Compare December 11, 2024 08:34
@codders codders merged commit eeded82 into master Dec 11, 2024
6 checks passed
@codders codders deleted the feat/upgrade-mediawiki-codesniffer-20241206 branch December 11, 2024 08:39
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.

3 participants