Skip to content

PHP Fatal error: Uncaught ArgumentCountError #17

@guangrei

Description

@guangrei

hi, install library just like instruction in readme.md and got "clue/shell-react": "^0.2" in my composer.json but when run any samples code this error is throwing

PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Clue\React\Shell\ProcessLauncher::__construct(), 0 passed in /home/guangrei/myphp/test.php on line 8 and exactly 1 expected in /home/guangrei/myphp/vendor/clue/shell-react/src/ProcessLauncher.php:14
Stack trace:
#0 /home/guangrei/myphp/test.php(8): Clue\React\Shell\ProcessLauncher->__construct()
#1 {main}
  thrown in /home/guangrei/myphp/vendor/clue/shell-react/src/ProcessLauncher.php on line 14

my php version is 7.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions