Skip to content

Commit

Permalink
Fix "Declaration should be compatible" warning with PHP 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jul 30, 2023
1 parent fc46f5d commit 2a2379e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/php/peer/http/unittest/MockHttpConnection.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace peer\http\unittest;

use io\streams\MemoryInputStream;
use peer\http\{HttpConnection, HttpRequest, HttpResponse};
use peer\http\{HttpConnection, HttpRequest, HttpResponse, HttpOutputStream};

/**
* Mock HTTP connection
Expand Down Expand Up @@ -64,7 +64,7 @@ public function open(HttpRequest $request) {
* @param peer.http.MockHttpOutputStream $output
* @return peer.http.HttpResponse
*/
public function finish($output) {
public function finish(HttpOutputStream $output) {
$this->lastRequest.= $output->bytes;

$response= $this->response();
Expand Down

0 comments on commit 2a2379e

Please sign in to comment.