PHP-Parallel-Lint icon indicating copy to clipboard operation
PHP-Parallel-Lint copied to clipboard

Loading another globally installed package

Open szepeviktor opened this issue 6 years ago • 0 comments

$ parallel-lint --blame --exclude vendor/ .
PHP Warning:  Unsupported declare 'strict_types' in phar:///home/php/.composer/vendor/phpstan/phpstan-shim/phpstan.phar/vendor/nette/di/src/compatibility.php on line 7

PHP Warning:  Unsupported declare 'strict_types' in phar:///home/php/.composer/vendor/phpstan/phpstan-shim/phpstan.phar/vendor/nette/di/src/DI/Config/Adapter.php on line 7

PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in phar:///home/php/.composer/vendor/phpstan/phpstan-shim/phpstan.phar/vendor/nette/di/src/DI/Config/Adapter.php on line 18

We have 2 PHP versions: 5.6 is the default and 7.2.

parallel-lint is installed globally in the user's home with PHP 5.6 phpstan is installed globally in the user's home with PHP 7.2

How come that phpstan's phar file is loaded while running parallel-lint on PHP 5.6?

ps. parallel-lint --help works okay

szepeviktor avatar Jun 01 '19 00:06 szepeviktor