diff --git a/src/Zttp.php b/src/Zttp.php index 7fe0380..e1630b4 100755 --- a/src/Zttp.php +++ b/src/Zttp.php @@ -175,8 +175,8 @@ function send($method, $url, $options) try { return tap(new ZttpResponse($this->buildClient()->request($method, $url, $this->mergeOptions([ 'query' => $this->parseQueryParams($url), - 'on_stats' => function (\GuzzleHttp\TransferStats $stats) { - $this->transferStats = $stats; + 'on_stats' => function ($transferStats) { + $this->transferStats = $transferStats; } ], $options))), function($response) { $response->cookies = $this->cookies;