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

Loading another globally installed package #138

@szepeviktor

Description

@szepeviktor
$ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions