google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.22k stars 279 forks source link

Upgrade PHPCS standards #8724

Open aaemnnosttv opened 1 month ago

aaemnnosttv commented 1 month ago

Feature Description

In order to support compatibility with newer versions of PHP, we need to upgrade some of our tooling for compatibility, such as PHPCS.

WPCS recently released a long-awaited major release (v3) which adds needed compatibility with PHP 8.

Similarly, the WP VIP coding standards automattic/vipwpcs also released a new matching major version.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

Test Coverage

QA:Eng Brief

Changelog entry

thelovekesh commented 1 month ago

@aaemnnosttv I hope https://github.com/google/site-kit-wp/pull/8757 is helpful. I haven't addressed any errors aside from updating the obsolete sniff names. Please feel free to decide which sniffs you want to run on this code (report summary added in the PR description), and I can take care of the remaining fixes.

eugene-manuilov commented 5 days ago

IB ✔️