think queue:listen windows异常

 

 

 

 

E:\php think queue:listen


  [think\exception\ErrorException]
  count(): Parameter must be an array or an object that implements Countable


Fatal error: Uncaught think\exception\ErrorException: count(): Parameter must be an array or an object that implements Countable in 

thinkphp\library\think\process\pipes\Windows.php on line 199


 /**
     * 写入到 stdin 输入
     * @param bool $blocking
     * @param bool $close
     */
    private function write($blocking, $close)
    {
        if (empty($this->pipes)) {
            return;
        }

        $this->unblock();

        //$r = null !== $this->input ? ['input' => $this->input] : null;
        $r = null !== $this->input ? ['input' => $this->input] :  [];
        $w = isset($this->pipes[0]) ? [$this->pipes[0]] : null;

 

posted @ 2020-06-29 13:19  江湖超  阅读(893)  评论(0编辑  收藏  举报