소스 검색

Different protocol has different type for Protocol::encode().Fix ide complain of param type mismatch.

Ares 6 년 전
부모
커밋
5dc6da08ee
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
      */