Skip to content

Skip missing phpcs vendor paths instead of hardcoding them - #164

Open
jerico wants to merge 3 commits into
mainfrom
phpcs-2.1.0-support
Open

Skip missing phpcs vendor paths instead of hardcoding them#164
jerico wants to merge 3 commits into
mainfrom
phpcs-2.1.0-support

Conversation

@jerico

@jerico jerico commented Aug 18, 2026

Copy link
Copy Markdown

Hardcoded vendor paths make phpcs fail when a path is absent in the v2.x standards bundle. Include each path only if it exists.

This is a prerequisite for PHP 8.2 / coding-standards v2.x support. Two things still needed (outside this repo):

  • PHP 8.2+ binary in the Lambda
  • rebuilt phpcs tarball (composer install against humanmade/coding-standards ^2.x) in each bot's S3 standards bucket

Part of https://github.com/humanmade/product-dev/issues/1665

Hardcoded vendor paths make phpcs fail when a path is absent in the v2.x standards bundle. Include each path only if it exists.
@jerico
jerico marked this pull request as ready for review August 18, 2026 09:42
jerico added 2 commits August 21, 2026 12:02
WPCS 3.x / VIP 3.x pull these in as dependencies for the Universal.*/NormalizedArrays.* sniffs. Confirmed missing via a real v2.5.0 coding-standards build — phpcs failed to resolve those sniffs without them.

@wisyhambolu wisyhambolu left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good to me.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants