Commit 38dab349 by Carsten Brandt

Fixed type of db\Exception::$errorInfo

type is array in PHP documentation
parent 75391b75
...@@ -16,19 +16,19 @@ namespace yii\db; ...@@ -16,19 +16,19 @@ namespace yii\db;
class Exception extends \yii\base\Exception class Exception extends \yii\base\Exception
{ {
/** /**
* @var mixed the error info provided by a PDO exception. This is the same as returned * @var array the error info provided by a PDO exception. This is the same as returned
* by [PDO::errorInfo](http://www.php.net/manual/en/pdo.errorinfo.php). * by [PDO::errorInfo](http://www.php.net/manual/en/pdo.errorinfo.php).
*/ */
public $errorInfo; public $errorInfo = array();
/** /**
* Constructor. * Constructor.
* @param string $message PDO error message * @param string $message PDO error message
* @param mixed $errorInfo PDO error info * @param array $errorInfo PDO error info
* @param integer $code PDO error code * @param integer $code PDO error code
* @param \Exception $previous The previous exception used for the exception chaining. * @param \Exception $previous The previous exception used for the exception chaining.
*/ */
public function __construct($message, $errorInfo = null, $code = 0, \Exception $previous = null) public function __construct($message, $errorInfo = array(), $code = 0, \Exception $previous = null)
{ {
$this->errorInfo = $errorInfo; $this->errorInfo = $errorInfo;
parent::__construct($message, $code, $previous); parent::__construct($message, $code, $previous);
......
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