mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
Fix issue #19 by ensuring RedisException is not redeclared
This commit is contained in:
parent
b0fbfa4f15
commit
5b89607e4b
@ -11,8 +11,11 @@ define('CRLF', sprintf('%s%s', chr(13), chr(10)));
|
||||
|
||||
/**
|
||||
* 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 {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user