Skip to content

Update to YoastCS 3.3.0 #453

Merged
jrfnl merged 4 commits intotrunkfrom
JRF/composer-update-yoastcs
Feb 5, 2026
Merged

Update to YoastCS 3.3.0 #453
jrfnl merged 4 commits intotrunkfrom
JRF/composer-update-yoastcs

Conversation

@jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Feb 5, 2026

Context

  • Update dev dependencies
  • Modernize codebase

Summary

This PR can be summarized in the following changelog entry:

  • Updated dev dependencies
  • Modernizes codebase

Relevant technical choices:

Composer: update to YoastCS 3.3.0

Refs:

Modernize: use trailing comma in multi-line function call

Since PHP 7.3, PHP allows for trailing commas in function calls.

Similar to trailing commas in multi-line arrays, having a comma after the last parameter in a multi-line function call will make the diff smaller if a new parameter is added at a later point in time, allowing reviewers to focus on what's actually changed.

For a single-line function call, no such advantage can be gained.

As this codebase has dropped support for PHP < 7.4 by now, we can apply this modernization in all multi-line function calls.

Ref:

Modernize: use null coalesce equals operator

... as allowed and available since PHP 7.4.

Modernize: use numeric literal separators

Since PHP 7.4, PHP allows using numeric literal separators in integers and floats to improve the readability of long numbers.

As this codebase has dropped support for PHP < 7.4 by now, we can apply this modernization to all long numbers in this codebase.

Ref:

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • N/A

jrfnl added 4 commits February 5, 2026 21:02
Since PHP 7.3, PHP allows for trailing commas in function calls.

Similar to trailing commas in multi-line arrays, having a comma after the last parameter in a multi-line function call will make the diff smaller if a new parameter is added at a later point in time, allowing reviewers to focus on what's actually changed.

For a single-line function call, no such advantage can be gained.

As this codebase has dropped support for PHP < 7.4 by now, we can apply this modernization in all multi-line function calls.

Ref:
* https://wiki.php.net/rfc/trailing-comma-function-calls
... as allowed and available since PHP 7.4.
Since PHP 7.4, PHP allows using numeric literal separators in integers and floats to improve the readability of long numbers.

As this codebase has dropped support for PHP < 7.4 by now, we can apply this modernization to all long numbers in this codebase.

Ref:
* https://wiki.php.net/rfc/numeric_literal_separator
@coveralls
Copy link

Pull Request Test Coverage Report for Build 21727572250

Details

  • 66 of 118 (55.93%) changed or added relevant lines in 29 files are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.02%) to 58.14%

Changes Missing Coverage Covered Lines Changed/Added Lines %
duplicate-post.php 0 1 0.0%
options.php 0 1 0.0%
src/admin/options-inputs.php 0 1 0.0%
src/admin/views/options.php 0 1 0.0%
src/ui/admin-bar.php 4 5 80.0%
src/ui/block-editor.php 2 3 66.67%
src/watchers/original-post-watcher.php 1 2 50.0%
common-functions.php 0 2 0.0%
compat/wpml-functions.php 0 2 0.0%
src/post-republisher.php 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
src/ui/column.php 1 27.42%
src/handlers/link-handler.php 3 0.0%
Totals Coverage Status
Change from base Build 21673733300: 0.02%
Covered Lines: 1532
Relevant Lines: 2635

💛 - Coveralls

@jrfnl jrfnl merged commit ab2e6b7 into trunk Feb 5, 2026
28 checks passed
@jrfnl jrfnl deleted the JRF/composer-update-yoastcs branch February 5, 2026 20:43
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