Browse Source

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

Different protocol has different type for Protocol::encode().Fix ide …
walkor 6 năm trước cách đây
mục cha
commit
a3536b8000
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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
      */