diff --git a/src/main/php/peer/http/HttpConnection.class.php b/src/main/php/peer/http/HttpConnection.class.php index 234952e9..7d5fed59 100755 --- a/src/main/php/peer/http/HttpConnection.class.php +++ b/src/main/php/peer/http/HttpConnection.class.php @@ -44,9 +44,9 @@ public function __construct($url, $transport= null) { /** * Set proxy * - * @param peer.http.HttpProxy $proxy + * @param ?peer.http.HttpProxy $proxy */ - public function setProxy(HttpProxy $proxy= null) { + public function setProxy($proxy= null) { $this->transport->setProxy($proxy); } diff --git a/src/main/php/peer/http/HttpRequest.class.php b/src/main/php/peer/http/HttpRequest.class.php index 3167767e..7031ff2c 100755 --- a/src/main/php/peer/http/HttpRequest.class.php +++ b/src/main/php/peer/http/HttpRequest.class.php @@ -25,7 +25,7 @@ class HttpRequest { * * @param peer.URL url object */ - public function __construct(URL $url= null) { + public function __construct($url= null) { if (null !== $url) $this->setUrl($url); } diff --git a/src/main/php/peer/http/HttpTransport.class.php b/src/main/php/peer/http/HttpTransport.class.php index 29be1f3b..d6ee71d8 100755 --- a/src/main/php/peer/http/HttpTransport.class.php +++ b/src/main/php/peer/http/HttpTransport.class.php @@ -45,9 +45,9 @@ abstract public function __construct(URL $url, $arg); /** * Set proxy * - * @param peer.http.HttpProxy proxy + * @param ?peer.http.HttpProxy $proxy */ - public function setProxy(HttpProxy $proxy= null) { + public function setProxy($proxy= null) { $this->proxy= $proxy; } diff --git a/src/main/php/peer/http/SocketHttpTransport.class.php b/src/main/php/peer/http/SocketHttpTransport.class.php index 75be2103..ce1f6ec1 100755 --- a/src/main/php/peer/http/SocketHttpTransport.class.php +++ b/src/main/php/peer/http/SocketHttpTransport.class.php @@ -38,9 +38,9 @@ protected function newSocket(URL $url, $arg) { /** * Set proxy * - * @param peer.http.HttpProxy proxy + * @param ?peer.http.HttpProxy proxy */ - public function setProxy(HttpProxy $proxy= null) { + public function setProxy($proxy= null) { parent::setProxy($proxy); $this->proxySocket= $proxy ? new Socket($proxy->host(), $proxy->port()) : null; } diff --git a/src/test/php/peer/http/unittest/HttpTransportTest.class.php b/src/test/php/peer/http/unittest/HttpTransportTest.class.php index bf4f268e..7b7beb61 100755 --- a/src/test/php/peer/http/unittest/HttpTransportTest.class.php +++ b/src/test/php/peer/http/unittest/HttpTransportTest.class.php @@ -18,7 +18,7 @@ public function __construct(\peer\URL $url, $arg) { $this->arg= $arg; } - public function setProxy(\peer\http\HttpProxy $proxy= null) { + public function setProxy($proxy= null) { $this->proxy= $proxy; }