瀏覽代碼

Merge pull request #443 from ares333/fix-ide-warning

Different protocol has different type for Protocol::encode().Fix ide …
walkor 6 年之前
父節點
當前提交
a3536b8000
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Connection/ConnectionInterface.php
  2. 1 1
      Connection/TcpConnection.php

+ 1 - 1
Connection/ConnectionInterface.php

@@ -54,7 +54,7 @@ abstract class  ConnectionInterface
     /**
      * Sends data on the connection.
      *
-     * @param string $send_buffer
+     * @param mixed $send_buffer
      * @return void|boolean
      */
     abstract public function send($send_buffer);

+ 1 - 1
Connection/TcpConnection.php

@@ -328,7 +328,7 @@ class TcpConnection extends ConnectionInterface
     /**
      * Sends data on the connection.
      *
-     * @param string $send_buffer
+     * @param mixed $send_buffer
      * @param bool  $raw
      * @return bool|null
      */