Instead of duplicating command line on code_analysis.yaml action file, we can just reuse composer class-leak from composer.json.
Each time composer class-leak is updated, it will be automatically used on GH Action, so no need to update duplicated command twice.
Without it, we will have an issue when we start addign --skip-type for vendor/bin/class-leak in code_analysis.yaml. The same --skip-type would be added to 2 places without this PR.
This is a follow up for https://github.com/rectorphp/rector-phpunit/pull/320 and related to https://github.com/rectorphp/rector-phpunit/pull/319#issuecomment-2035137884
Instead of duplicating command line on
code_analysis.yaml
action file, we can just reusecomposer class-leak
fromcomposer.json
.Each time
composer class-leak
is updated, it will be automatically used on GH Action, so no need to update duplicated command twice.Without it, we will have an issue when we start addign
--skip-type
forvendor/bin/class-leak
incode_analysis.yaml
. The same--skip-type
would be added to 2 places without this PR.