Selaa lähdekoodia

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

Ares 6 vuotta sitten
vanhempi
commit
5dc6da08ee
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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
      */