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

Allow me to specify which php binary to use #70

Open
finn-matti opened this issue Jul 20, 2023 · 1 comment
Open

Allow me to specify which php binary to use #70

finn-matti opened this issue Jul 20, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@finn-matti
Copy link

Is your feature request related to a problem? Please describe.
Because of our dev setup we have scripts in place that are symlinked to user/local/bin and run whatever php code you want inside our kubernetes environment. This is great and all, but has its challenges for an extension like this, because the only way to get this extension to work would be to add php-code-sniffer to the shared repo I'm currently working. But since it's just me who wants to use phpcs I do not want to pollute the repo unnecessarily.

Describe the solution you'd like
It would therefore be nice, if we could specify which php binary to use by specifiying a path.

Describe alternatives you've considered
Hacking around in our dev setup, adding it to the repo.

@finn-matti finn-matti added the enhancement New feature or request label Jul 20, 2023
@wongjn wongjn removed their assignment Jul 24, 2023
@SharakPL
Copy link

SharakPL commented Mar 17, 2024

Could use that too @wongjn 🙏
Tried making an alias of php in my powershell profile, but it's only available in the terminal so it doesn't work for the extension.
Tried setting up "php.executablePath" in settings.json but it is ignored:

`php' is not recognized as an internal or external command, operable program or batch file.

The only way is to change environment variables, but this can mess things up when switching between different php versions for other software.

If not with its own setting (eg. "phpSniffer.phpExecutablePath"), the extenstion should at least use "php.executablePath" if it's set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants