Skip to content

Commit

Permalink
Merge pull request #626 from alindeman/0.9
Browse files Browse the repository at this point in the history
Backports #513 to 0.9 branch
  • Loading branch information
davedevelopment committed Sep 30, 2016
2 parents dc36998 + a3711c4 commit 65d4ca1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/Mockery/Instantiator.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
namespace Mockery;

use Closure;
use Exception;
use ReflectionClass;
use UnexpectedValueException;
use InvalidArgumentException;
Expand Down Expand Up @@ -135,7 +134,7 @@ private function attemptInstantiationViaUnSerialization(ReflectionClass $reflect

try {
unserialize($serializedString);
} catch (Exception $exception) {
} catch (\Exception $exception) {
restore_error_handler();

throw new UnexpectedValueException("An exception was raised while trying to instantiate an instance of \"{$reflectionClass->getName()}\" via un-serialization", 0, $exception);
Expand Down

0 comments on commit 65d4ca1

Please sign in to comment.