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

Composer: various tweaks #1488

Merged
merged 1 commit into from
Sep 17, 2018
Merged

Composer: various tweaks #1488

merged 1 commit into from
Sep 17, 2018

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 16, 2018

This commit adds two additional scripts and adjusts the existing one.

The additional scripts are just shortcuts to run phpcs and phpcbf.

The more important change is how the scripts are run - using the @php prefix ensures that the scripts are run against the same PHP version as with which Composer is called, instead of against the system default PHP version.

This is important if - as a WPCS dev - you change the PHP version for Composer to be able to test things against different PHP versions.

Ref: composer/composer#7645

This commit adds two additional scripts and adjusts the existing one.

The additional scripts are just shortcuts to run `phpcs` and `phpcbf`.

The more important change is how the scripts are run - using the `@php` prefix ensures that the scripts are run against the same PHP version as with which Composer is called, instead of against the system default PHP version.

This is important if - as a WPCS dev - you change the PHP version for Composer to be able to test things against different PHP versions.

Ref: composer/composer#7645
Copy link
Member

@GaryJones GaryJones left a comment

Choose a reason for hiding this comment

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

Tested PR locally on Mac OSX, and the additional scripts work as well as running the tools directly (the typical case).

@GaryJones GaryJones merged commit fc016f7 into develop Sep 17, 2018
@GaryJones GaryJones deleted the feature/composer-tweaks branch September 17, 2018 08:40
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