From 180fb5273921b0f0618781d0ee5b303fd3b38a49 Mon Sep 17 00:00:00 2001 From: Zach Badgett Date: Thu, 10 Jan 2013 14:25:48 -0700 Subject: [PATCH] Fixed bug where iteration to the event 'command.after_send' sent a Request object instead of a Command object. --- src/Guzzle/Service/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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