From 00bf8c9522c957f77fd032ac047e32b5962443b6 Mon Sep 17 00:00:00 2001 From: meus Date: Mon, 14 May 2007 13:00:14 +0000 Subject: [PATCH] Fatal error: Cannot make non static method Doctrine_Exception::errorMessage() static in class Doctrine_Connection_Exception --- lib/Doctrine/Connection/Exception.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Connection/Exception.php b/lib/Doctrine/Connection/Exception.php index 5ba22f42d..80f7ead1b 100644 --- a/lib/Doctrine/Connection/Exception.php +++ b/lib/Doctrine/Connection/Exception.php @@ -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];