Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
using InvalidArgumentException for Zend\Expressive\Exception namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Oct 19, 2015
1 parent 37097b2 commit d8809c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Emitter/EmitterStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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__
));
Expand Down

0 comments on commit d8809c6

Please sign in to comment.