1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Fatal error: Cannot make non static method Doctrine_Exception::errorMessage() static in class Doctrine_Connection_Exception

This commit is contained in:
meus 2007-05-14 13:00:14 +00:00
parent 5b2c3a4ead
commit 00bf8c9522

View File

@ -35,7 +35,7 @@ class Doctrine_Connection_Exception extends Doctrine_Exception
/** /**
* @var array $errorMessages an array containing messages for portable error codes * @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 => 'unknown error',
Doctrine::ERR_ALREADY_EXISTS => 'already exists', Doctrine::ERR_ALREADY_EXISTS => 'already exists',
Doctrine::ERR_CANNOT_CREATE => 'can not create', 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 * @return string error message, or false if the error code was
* not recognized * not recognized
*/ */
public static function errorMessage($value = null) public function errorMessage($value = null)
{ {
return isset(self::$errorMessages[$value]) ? return isset(self::$errorMessages[$value]) ?
self::$errorMessages[$value] : self::$errorMessages[Doctrine::ERR]; self::$errorMessages[$value] : self::$errorMessages[Doctrine::ERR];