Closed TravisCarden closed 4 years ago
Hi! Thank you for reporting this issue!
We would definitely welcome such a contribution but (as you may have noticed from my late response) we don't have much time/energy to spend on this project currently.
So, if you do decide to open an MR, don't feel discouraged if our response is slow!
Thanks, @Potherca! https://github.com/Dealerdirect/phpcodesniffer-composer-installer/pull/85 should do the trick. :)
The MR has been merged, will be part of the upcoming 0.5.1
release.
It's impossible to set the
extra.phpcodesniffer-search-depth
config value from the command line because it strictly enforces an integer type on it, whereascomposer config
cannot set integer values (see https://github.com/composer/composer/issues/8195):I currently use the following fairly ugly kludge as a workaround:
For its part, I've requested that Composer provide the ability to typecast data on the commandline (again, see https://github.com/composer/composer/issues/8195). On this side, it would be nice if
phpcodesniffer-composer-installer
would typecast string values to integers. Would the maintainers accept a pull request to that effect?