[BUGFIX] Remove invalid tool call from composer check
script
#2600
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With commit [1] development dependencies have been removed
from the
composer.json
, but not from thecomposer.lock
.This indicates a inproper use of
composer
and should betaken care in review of pull-requests. A good practice here
is to etablish a rule that composer commands needs to be
added to the commit message and the pull-request.
Other removed dependency and downgraded dependencies have
been fixed or readded meanwhile, still missing the
phpcs
tool for the
check composer script
.The
CONTRIBUTION.md
states to executecomposer check
before creating a pull-request, which is literally broken
due to the missing dependency.
This change removes the php sniffer call from the check
script. Additionally, the composer scripts are enhanced
to use the same php binary used to invoke composer itself
to mitigate issues using the wrong php version on systems
with multiple php version binaries.
Further consideration should be to use the check command in
the Github Action workflow to have a border if development
toolchain is gonna be broken with a change.