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

fix(environment.phpVersion): consider the project's composer php version 🇧🇷 #3162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rejmann
Copy link

@rejmann rejmann commented Jan 14, 2025

I encountered the same issue described in the issue #1710 and decided to implement a fix/feature to consider the version defined in composer.json or the PHP version installed.

The idea behind this implementation was to add a configuration in the local workspace file .vscode/settings.json, using the key intelephense.environment.phpVersion, where we can define the specific version for the project.

{
    "intelephense.environment.phpVersion": "^7.4"
}

Whenever the extension is activated, the process will check and, if it does not exist, will create the .vscode directory to ensure that Intelephense uses the PHP version configured for each project, providing a more accurate and controlled environment.

I will be happy to contribute to the extension and I am open to suggestions for improvements!

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

Successfully merging this pull request may close these issues.

1 participant