Fatal error: Cannot make non static method Doctrine_Exception::errorMessage() static in class Doctrine_Connection_Exception
This commit is contained in:
parent
5b2c3a4ead
commit
00bf8c9522
@ -35,7 +35,7 @@ class Doctrine_Connection_Exception extends Doctrine_Exception
|
||||
/**
|
||||
* @var array $errorMessages an array containing messages for portable error codes
|
||||
*/
|
||||
protected static $errorMessages = array(
|
||||
static protected $errorMessages = array(
|
||||
Doctrine::ERR => 'unknown error',
|
||||
Doctrine::ERR_ALREADY_EXISTS => 'already exists',
|
||||
Doctrine::ERR_CANNOT_CREATE => 'can not create',
|
||||
@ -105,7 +105,7 @@ class Doctrine_Connection_Exception extends Doctrine_Exception
|
||||
* @return string error message, or false if the error code was
|
||||
* not recognized
|
||||
*/
|
||||
public static function errorMessage($value = null)
|
||||
public function errorMessage($value = null)
|
||||
{
|
||||
return isset(self::$errorMessages[$value]) ?
|
||||
self::$errorMessages[$value] : self::$errorMessages[Doctrine::ERR];
|
||||
|
Loading…
Reference in New Issue
Block a user