Explorar o código

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

Ares %!s(int64=6) %!d(string=hai) anos
pai
achega
5dc6da08ee
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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
      */