phpro / grumphp-shim

This repository provides easy way to install GrumPHP without the risk of conflicting dependencies.
MIT License
24 stars 3 forks source link

"grumphp" shell-script broken #3

Closed prilka closed 4 years ago

prilka commented 4 years ago

With the changes in #2 (c59799482d767535a85a7340ed6b040ff4d9c15b) it's no longer possible to call the shell-script if the current working directory is not vendor/bin

Command:

vendor/bin/grumphp

Error:

PHP Warning:  require(phar://grumphp.phar/.box/bin/check-requirements.php): failed to open stream: phar error: invalid url or non-existent phar "phar://grumphp.phar/.box/bin/check-requirements.php" in /path/to/my/project/vendor/phpro/grumphp-shim/grumphp on line 9
stijnbernards commented 4 years ago

The same is happening for me. Your PR fixes it for my case.