diff --git a/src/Guzzle/Service/Client.php b/src/Guzzle/Service/Client.php index 30f25ad7..1e9a5f44 100644 --- a/src/Guzzle/Service/Client.php +++ b/src/Guzzle/Service/Client.php @@ -239,8 +239,8 @@ class Client extends HttpClient implements ClientInterface } } - foreach ($successful as $c) { - $this->dispatch('command.after_send', array('command' => $c)); + foreach ($successful as $success) { + $this->dispatch('command.after_send', array('command' => $successful[$success])); } // Return the response or throw an exception