Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #19 from freizep/master
Browse files Browse the repository at this point in the history
fix php version issue #14 from ErrorResponsePlugin
  • Loading branch information
mtdowling committed Apr 16, 2014
2 parents fa00463 + 3a18883 commit f5886f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Guzzle/Plugin/ErrorResponse/ErrorResponsePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function getErrorClosure(RequestInterface $request, CommandInterface $
$errorClassInterface = __NAMESPACE__ . '\\ErrorResponseExceptionInterface';
if (!class_exists($className)) {
throw new ErrorResponseException("{$className} does not exist");
} elseif (!is_subclass_of($className, $errorClassInterface)) {
} elseif (!(in_array($errorClassInterface, class_implements($className)))) {
throw new ErrorResponseException("{$className} must implement {$errorClassInterface}");
}
throw $className::fromCommand($command, $response);
Expand Down

0 comments on commit f5886f4

Please sign in to comment.