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

Pass stdin-path to phpcbf #21

Merged
merged 1 commit into from
Jul 4, 2019
Merged

Pass stdin-path to phpcbf #21

merged 1 commit into from
Jul 4, 2019

Conversation

bartlangelaan
Copy link
Contributor

Since 232cfba the validator passes the filename to phpcs, so it respects all include and exclude patterns. However, when the code is formatted the filename isn't passed, which led to unexpected results.

This makes the same change that was made to phpcs to phpcbf, so they both behave the same and autofixing files takes into account the include/exclude rules.

Since 232cfba the validator passes the filename to phpcs, so it respects all include and exclude patterns. However, when the code is formatted the filename isn't passed, which led to unexpected results.

This makes the same change that was made to phpcs to phpcbf, so they both behave the same and autofixing files takes into account the include/exclude rules.
Copy link
Owner

@wongjn wongjn left a comment

Choose a reason for hiding this comment

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

Nice catch, thank you.

@wongjn wongjn merged commit 69b4f89 into wongjn:master Jul 4, 2019
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.

None yet

2 participants