Commit 00bf8c95 authored by meus's avatar meus

Fatal error: Cannot make non static method Doctrine_Exception::errorMessage()...

 Fatal error: Cannot make non static method Doctrine_Exception::errorMessage() static in class Doctrine_Connection_Exception
parent 5b2c3a4e
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment