Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Loading another globally installed package #138

Open
szepeviktor opened this issue Jun 1, 2019 · 0 comments
Open

Loading another globally installed package #138

szepeviktor opened this issue Jun 1, 2019 · 0 comments

Comments

@szepeviktor
Copy link

$ 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

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

No branches or pull requests

1 participant