mamuz / PhpDependencyAnalysis

Static code analysis to find violations in a dependency graph
http://mamuz.github.io/PhpDependencyAnalysis/
MIT License
561 stars 45 forks source link

phpda not taking relative paths to config file #31

Closed davidcim closed 7 years ago

davidcim commented 7 years ago

My Environment (version of the project, operating system, or hardware)

My phpda.yml:

Not important

When I run this command:

$ phpda analyze ./phpdaConfig.yml

Actual behavior:

I get this error:

[InvalidArgumentException] Configfile "./phpdaConfig.yml" is not readable

Expected behavior:

It should work no matter whether I use a relative path or an absolute path.

Currently it works only if I use an absolute path like this one:

$ phpda analyze ~/www/testsite/php-lib/DavidCim/WebRender/docs/phpdaConfig.yml

Not needed to say that I am running the command from the right directory.

capture148