think queue:listen windows异常

E:php think queue:listen


  [thinkexceptionErrorException]
  count(): Parameter must be an array or an object that implements Countable


Fatal error: Uncaught thinkexceptionErrorException: count(): Parameter must be an array or an object that implements Countable in 

thinkphplibrary	hinkprocesspipesWindows.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;
原文地址:https://www.cnblogs.com/sevensky/p/13207482.html