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

Add direct dependency on PHP_CodeSniffer #4593

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

morozov
Copy link
Member

@morozov morozov commented Apr 9, 2021

Q A
Type improvement
BC Break no

See the build failure of #4592.

PHP_CodeSniffer 3.6.0 introduces changes of some error codes suppressed in the codebase (e.g. squizlabs/PHP_CodeSniffer@0aeb095).

Since it's an indirect dependency currently restricted to ^3.5.6 by slevomat/coding-standard, without restricting it directly, the repository would have to maintain compatibility with both 3.5 and 3.6. The solution is to restrict it temporarily until it's restricted by a direct dependency.

@morozov morozov added this to the 2.13.1 milestone Apr 9, 2021
@morozov morozov requested a review from greg0ire April 9, 2021 04:19
@morozov morozov marked this pull request as ready for review April 9, 2021 04:20
greg0ire
greg0ire previously approved these changes Apr 9, 2021
@greg0ire
Copy link
Member

greg0ire commented Apr 9, 2021

Approving for the sake of fixing the build, but I really think referencing a rule in a file is enough motive to consider this a direct dependency, see #4592 (comment)

@morozov morozov changed the title Temporarily bump PHP_CodeSniffer version constraint to ^3.6.0 Add direct dependency on PHP_CodeSniffer Apr 9, 2021
@morozov
Copy link
Member Author

morozov commented Apr 9, 2021

I really think referencing a rule in a file is enough motive to consider this a direct dependency

Valid point. Please see the update.

@morozov morozov merged commit 6fd2757 into doctrine:2.13.x Apr 9, 2021
@morozov morozov deleted the phpcs-3.6.0 branch April 9, 2021 17:04
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants