From d8809c66ef18881a3f3956626684af9d01a33989 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 19 Oct 2015 15:02:59 +0700 Subject: [PATCH] using InvalidArgumentException for Zend\Expressive\Exception namespace --- src/Emitter/EmitterStack.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Emitter/EmitterStack.php b/src/Emitter/EmitterStack.php index 2c4e99dc..31de5ab7 100644 --- a/src/Emitter/EmitterStack.php +++ b/src/Emitter/EmitterStack.php @@ -13,6 +13,7 @@ use Psr\Http\Message\ResponseInterface; use SplStack; use Zend\Diactoros\Response\EmitterInterface; +use Zend\Expressive\Exception; /** * Provides an EmitterInterface implementation that acts as a stack of Emitters. @@ -96,7 +97,7 @@ public function unshift($emitter) private function validateEmitter($emitter) { if (! $emitter instanceof EmitterInterface) { - throw new InvalidArgumentException(sprintf( + throw new Exception\InvalidArgumentException(sprintf( '%s expects an EmitterInterface implementation', __CLASS__ ));