Merge branch 'v2.6.x'
[m6w6/ext-http] / tests / client028.phpt
index 4678bcca8b3f4069b7c7a1861e9dc46d3aed00f4..27ab2b646f37703f78ba9ed375726aab7f3bf2b6 100644 (file)
@@ -29,12 +29,12 @@ class UserHandler implements http\Client\Curl\User
                $this->run = $run;
        }
        
-       function timer($timeout_ms) {
+       function timer(int $timeout_ms) {
                echo "T";
                $this->timeout = $timeout_ms;
        }
        
-       function socket($socket, $action) {
+       function socket($socket, int $action) {
                echo "S";
                
                switch ($action) {
@@ -80,7 +80,7 @@ class UserHandler implements http\Client\Curl\User
                return count($this->client);
        }
        
-       function wait($timeout_ms = null) {
+       function wait(int $timeout_ms = null) {
                echo "W";
                
                if ($timeout_ms === null) {