Skip to content

Commit

Permalink
Merge pull request #56 from vaxltd/issue19/redeclare-redisexception
Browse files Browse the repository at this point in the history
Ensure RedisException is not redeclared to allow PHPRedis compatibility
  • Loading branch information
Chris Boulton committed Aug 21, 2012
2 parents 905c396 + 5b89607 commit 28a98d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Redisent/Redisent.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@

/**
* Wraps native Redis errors in friendlier PHP exceptions
* Only declared if class doesn't already exist to ensure compatibility with php-redis
*/
class RedisException extends Exception {
if (! class_exists('RedisException')) {
class RedisException extends Exception {
}
}

/**
Expand Down

0 comments on commit 28a98d7

Please sign in to comment.