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 setting of current_dir with 'root' command parameter #2001

Merged
merged 1 commit into from Aug 11, 2019
Merged

Fix setting of current_dir with 'root' command parameter #2001

merged 1 commit into from Aug 11, 2019

Conversation

mitelg
Copy link
Contributor

@mitelg mitelg commented Aug 11, 2019

Hey,
I'm quite new to psalm and I am currently trying to introduce it to Shopware. Works good so far, but I had an issue, when I was using psalm for our pre-commit hook. Due to our development setup it is necessary to set the --root command parameter, but psalm fails to load the autoloader files.
After some researching I found out, that the $current_dir variable was not set to the given root directory, before searching for the composer files. This issue was introduce with #1904
This PR fixes the issue and works nice in my environment.

@muglug muglug merged commit 5722512 into vimeo:master Aug 11, 2019
@muglug
Copy link
Collaborator

muglug commented Aug 11, 2019

Thanks!

2e3s pushed a commit to 2e3s/psalm that referenced this pull request Sep 29, 2019
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.

None yet

2 participants