Skip to content

parallel: Child process error (exit code 1): The "--port" option does not exist. #2986

@mkopinsky

Description

@mkopinsky

Bug report

$ vendor/bin/phpstan --version
PHPStan - PHP Static Analysis Tool 0.12.10

$ cat phpstan.neon 
parameters:
  featureToggles:
    parallel: true
  level: 0

$ vendor/bin/phpstan a lib/
Note: Using configuration file /Users/kopinsky/waytohealth/waytohealth/phpstan.neon.
 -- ------------------------------------------------------------------------------------------------------------------- 
     Error                                                                                                              
 -- ------------------------------------------------------------------------------------------------------------------- 
     Child process error (exit code 1):                                                                                 
                                                                                                                        
       The "--port" option does not exist.                                                                              
                                                                                                                        
                                                                                                                        
     analyse [--paths-file PATHS-FILE] [-c|--configuration CONFIGURATION] [-l|--level LEVEL] [--no-progress] [--debug]  
     [-a|--autoload-file AUTOLOAD-FILE] [--error-format ERROR-FORMAT] [--memory-limit MEMORY-LIMIT] [--xdebug] [--]     
     [<paths>...]                                                                                                       
                                                                                                                        
<snipped - repeats 7 more times>                                                        
 -- ------------------------------------------------------------------------------------------------------------------- 

                                                                                                                        
 [ERROR] Found 8 errors

I'm running Homebrew PHP 7.1.33. Homebrew PHP 7.2.24 gave the same result.

phpstan is installed normally through composer.
composer.json contains:

  "require-dev": {
    "laravel/tinker": "^1.0",
    "phpstan/phpstan": "^0.12.0"
  },

composer.lock contains:

    "packages-dev": [
        ...,
        {
            "name": "phpstan/phpstan",
            "version": "0.12.10",
            "source": {
                "type": "git",
                "url": "https://github.com/phpstan/phpstan.git",
                "reference": "39004edc7fc308752f625b89b70ad1710708f45e"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/39004edc7fc308752f625b89b70ad1710708f45e",
                "reference": "39004edc7fc308752f625b89b70ad1710708f45e",
                "shasum": ""
            },
            "require": {
                "php": "^7.1"
            },
            "bin": [
                "phpstan",
                "phpstan.phar"
            ],
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "0.12-dev"
                }
            },
            "autoload": {
                "files": [
                    "bootstrap.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "description": "PHPStan - PHP Static Analysis Tool",
            "time": "2020-02-12T22:03:42+00:00"
        },
]

If I run phpstan with -v, I get:

$ vendor/bin/phpstan a lib/ -v
Note: Using configuration file /Users/kopinsky/waytohealth/waytohealth/phpstan.neon.
 -- -------------------------------------------------------------------------------------------------------------------- 
     Error                                                                                                               
 -- -------------------------------------------------------------------------------------------------------------------- 
     Child process error (exit code 1):                                                                                  
     In ArgvInput.php line 180:                                                                                          
                                                                                                                         
       [_HumbugBox075db77467cb\Symfony\Component\Console\Exception\RuntimeException]                                     
       The "--port" option does not exist.                                                                               
                                                                                                                         
                                                                                                                         
     Exception trace:                                                                                                    
       at                                                                                                                
     phar:///Users/kopinsky/waytohealth/waytohealth/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Input/ArgvInp  
     ut.php:180                                                                                                          
      _HumbugBox075db77467cb\Symfony\Component\Console\Input\ArgvInput->addLongOption() at                               
     phar:///Users/kopinsky/waytohealth/waytohealth/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Input/ArgvInp  
     ut.php:132                                                                                                          
      _HumbugBox075db77467cb\Symfony\Component\Console\Input\ArgvInput->parseLongOption() at                             
     phar:///Users/kopinsky/waytohealth/waytohealth/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Input/ArgvInp  
     ut.php:73                                                                                                           
      _HumbugBox075db77467cb\Symfony\Component\Console\Input\ArgvInput->parse() at                                       
     phar:///Users/kopinsky/waytohealth/waytohealth/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Input/Input.p  
     hp:50                                                                                                               
      _HumbugBox075db77467cb\Symfony\Component\Console\Input\Input->bind() at                                            
     phar:///Users/kopinsky/waytohealth/waytohealth/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Command/Comma  
     nd.php:193                                                                                                          
      _HumbugBox075db77467cb\Symfony\Component\Console\Command\Command->run() at                                         
     phar:///Users/kopinsky/waytohealth/waytohealth/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Application.p  
     hp:858                                                                                                              
      _HumbugBox075db77467cb\Symfony\Component\Console\Application->doRunCommand() at                                    
     phar:///Users/kopinsky/waytohealth/waytohealth/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Application.p  
     hp:236                                                                                                              
      _HumbugBox075db77467cb\Symfony\Component\Console\Application->doRun() at                                           
     phar:///Users/kopinsky/waytohealth/waytohealth/vendor/phpstan/phpstan/phpstan/vendor/symfony/console/Application.p  
     hp:137                                                                                                              
      _HumbugBox075db77467cb\Symfony\Component\Console\Application->run() at                                             
     phar:///Users/kopinsky/waytohealth/waytohealth/vendor/phpstan/phpstan/phpstan/bin/phpstan:63                        
      _HumbugBox075db77467cb\{closure}() at                                                                              
     phar:///Users/kopinsky/waytohealth/waytohealth/vendor/phpstan/phpstan/phpstan/bin/phpstan:64                        
      require() at /Users/kopinsky/waytohealth/waytohealth/vendor/phpstan/phpstan/phpstan:6                              
                                                                                                                         
     analyse [--paths-file PATHS-FILE] [-c|--configuration CONFIGURATION] [-l|--level LEVEL] [--no-progress] [--debug]   
     [-a|--autoload-file AUTOLOAD-FILE] [--error-format ERROR-FORMAT] [--memory-limit MEMORY-LIMIT] [--xdebug] [--]      
     [<paths>...]                                                                                                        
      
(repeated for each child process)                                                                                                                   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions