Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
38dab349
Commit
38dab349
authored
Sep 01, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed type of db\Exception::$errorInfo
type is array in PHP documentation
parent
75391b75
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Exception.php
framework/yii/db/Exception.php
+4
-4
No files found.
framework/yii/db/Exception.php
View file @
38dab349
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment